Clean up logout handling in tests.

This commit is contained in:
Ian Gulliver
2014-05-16 17:57:26 +03:00
parent 482feee804
commit fe7bab189d
2 changed files with 48 additions and 29 deletions

View File

@@ -402,6 +402,9 @@ Cosmopolite.prototype.onSocketMessage_ = function(msg) {
* @param {!Object} e Deserialized event object
*/
Cosmopolite.prototype.onServerEvent_ = function(e) {
if (this.shutdown_) {
return;
}
switch (e['event_type']) {
case 'login':
if ('onLogin' in this.callbacks_) {