aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--game.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/game.js b/game.js
index 77d4151..bd2b288 100644
--- a/game.js
+++ b/game.js
@@ -170,6 +170,7 @@ function startPhysicsLoop() {
}
if (ballX < -ballRadius) {
socket.emit("ballout");
+ stopPhysicsLoop();
}
}, interval * 1000);
}