]> git.cworth.org Git - lmno-server/blobdiff - game.js
game: Fix to actually drop connections that get closed
[lmno-server] / game.js
diff --git a/game.js b/game.js
index 5a49b6bdd52b5aaf753ca3469e14618cd1548c9a..4649b56704a41f8c103e492c09560344cfadb299 100644 (file)
--- a/game.js
+++ b/game.js
@@ -23,7 +23,7 @@ class Player {
 
   /* Returns the number of remaining connections after this one is removed. */
   remove_connection(connection) {
-    this.connections.filter(c => c !== connection);
+    this.connections = this.connections.filter(c => c !== connection);
     return this.connections.length;
   }