Commit 3e65c874 authored by nanahira's avatar nanahira

fix reconnect crash

parent 96fe8f96
......@@ -1008,7 +1008,7 @@ CLIENT_is_able_to_reconnect = global.CLIENT_is_able_to_reconnect = (client, deck
if client.system_kicked
return false
disconnect_info = disconnect_list[CLIENT_get_authorize_key(client)]
unless disconnect_info
unless disconnect_info and disconnect_info.deckbuf
return false
room = ROOM_all[disconnect_info.room_id]
if !room
......
......@@ -1335,7 +1335,7 @@
return false;
}
disconnect_info = disconnect_list[CLIENT_get_authorize_key(client)];
if (!disconnect_info) {
if (!(disconnect_info && disconnect_info.deckbuf)) {
return false;
}
room = ROOM_all[disconnect_info.room_id];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment