Commit 53d07c6
Stan Surmay
Fixes #194 - ignore shutdownConnection if ClientComms already closed
it is possible for multiple places to call shutdownConnection
what we have observed is that shutdownConnection can be called,
then close, and then another shutdownConnection
the second shutdownConnection is still being run even though
the ClientComms is now closed (stoppingComms is false because
the original shutdownConnection is done executing and closePending
is false because close was not called as shutdownConnection
was running)
this can cause NPE because close has already destroyed the class
Signed-off-by: Stan Surmay <ssurmay@bandwidth.com>1 parent 9c9b344 commit 53d07c6
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- org.eclipse.paho.client.mqttv3/src/main/java-templates/org/eclipse/paho/client/mqttv3/internal
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
0 commit comments