Close all chat boxes when disconnected (with no reconnection attempt)

This commit is contained in:
JC Brand 2016-10-18 11:03:36 +02:00
parent d3fe8e63b3
commit 0fe4031a1b

View File

@ -450,6 +450,7 @@
}
delete converse.connection.reconnecting;
converse._tearDown();
converse.chatboxviews.closeAllChatBoxes();
converse.emit('disconnected');
converse.log('DISCONNECTED');
return 'disconnected';