I’m writing a module and it has local table with a list of filtered clients. When one of clients in table is killed all operations with it raise “client is invalid” exception.
So how can I check if client is killed?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Best would be to add a signal for the
unmanageevent on every client, you add to your list.In the signal function you can then delete the client from the list of tables. It could look something like this: