Conversation
…to access cleared converstations
|
cmiiw, I believe that So the better way to check |
|
That's true, but it's the state of the |
…to access cleared converstations
|
cmiiw, I believe that So the better way to check |
|
That's true, but it's the state of the |
Fix for issue #27
Scheduled event handlers can run after a call to
disconnecton the client. The conversation object has been cleared so item lookups cause an error to be thrown in some handlers.With these changes, the event handler function returns early if the client is not connected, before trying to look up items.
A test case has been added, however the error triggers after the successful completion of the test. Not sure how to wait for all scheduled event handlers to run in the test.