-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'close' of null #58
Comments
This happens here, when the platform sender closes its parent class, which sets its client to null. Have you tried catching errors on the platform sender ? If not try it. Else it could be useful to emit a close event on the sender, but it's kind of strange as normally all cases can be properly handled with the existing events. |
This is likely due to this line in the same function @thibauts mentions. I would want to listen to a close event, so I could know if the internal client closed itself for some reason.
|
Hi,
Occasionally, when I attempt to
.close
aPlatformSender
, I get an error:I've traced this back to here. After some debugging, it would seem that
platformSender.client
isnull
, for some reason.Any ideas on why this might be occurring? For now, I'm just checking if
platformSender.client != null
before I close it.Thanks!
The text was updated successfully, but these errors were encountered: