Fixed serious bug of client descriptor drop on connectionLost event for antoher client with sae ID (bug notified on email by ZhiPeng Yang)

This commit is contained in:
andrea
2015-01-10 17:53:31 +01:00
parent 6bde0e7c9b
commit 1e63652d32
7 changed files with 79 additions and 29 deletions
+6 -2
View File
@@ -42,8 +42,12 @@ print "Publisher is going to publish.."
publisher.publish('topic', 'Hello world!!'.bytes, 2, false)
println "Ok mate, done!"
client1.disconnect()
println "Client1 disconnected"
try {
client1.disconnect()
println "BAD! Client1 has been able to call disconnect, but it has to be already dropped out"
} catch (Exception ex) {
println "Ok, client1 can't disconnect because it was already disconnected"
}
client2.disconnect()
println "Client2 disconnected"