Commit 3f310cb0 authored by nanahira's avatar nanahira

fix zombie room again

parent 2d829a30
Pipeline #28639 passed with stages
in 24 minutes and 41 seconds
......@@ -623,7 +623,7 @@ loadLFList = (path) ->
# clean zombie rooms
setInterval ()->
for room in ROOM_all when room and !room.get_playing_player().length
for room in ROOM_all when room and !room.players.length
room.terminate()
return
, 300000
......
......@@ -792,7 +792,7 @@
var l, len1, room;
for (l = 0, len1 = ROOM_all.length; l < len1; l++) {
room = ROOM_all[l];
if (room && !room.get_playing_player().length) {
if (room && !room.players.length) {
room.terminate();
}
}
......
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