Fix reconnections

This commit is contained in:
Guangcong Luo
2017-09-01 06:50:52 -04:00
parent 5c8d5a63d8
commit 05fa18e9a6

View File

@@ -534,6 +534,7 @@ class Battle {
if (request[3]) data += `\n|sentchoice|${request[3]}`;
(connection || user).sendTo(this.id, data);
}
if (!player.active) this.onJoin(user);
}
onUpdateConnection(user, connection) {
this.onConnect(user, connection);