-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Noticed the server crashed this morning because of this error, should investigate and fix. Looks like websocket not open. Should probably check for this before every send().
Server crashed
[12/01/2017 12:18:07.493] [ERROR] Error: not opened
at WebSocket.send (/usr/share/games/zorbio/node_modules/ws/lib/WebSocket.js:358:18)
at Array. (/usr/share/games/zorbio/server/ServerPlayer.js:23:16)
at ZORAbility.ZORSpeedBoostAbilityUpdate [as update] (/usr/share/games/zorbio/common/zorbio.js:709:38)
at ZORPlayerUpdate [as update] (/usr/share/games/zorbio/common/zorbio.js:566:17)
at updateEachPlayer (/usr/share/games/zorbio/server/AppServer.js:545:20)
at Array.forEach (native)
at AppServer.appPlayerUpdates [as playerUpdates] (/usr/share/games/zorbio/server/AppServer.js:544:28)
at appServerTickFast (/usr/share/games/zorbio/server/AppServer.js:976:14)
at Timeout.gameLoop [as _onTimeout] (/usr/share/games/zorbio/node_modules/node-gameloop/lib/gameloop.js:61:4)
at ontimeout (timers.js:386:11)
[12/01/2017 12:50:51.981] [WARN] All game instances full!
Server restarted
[12/01/2017 12:18:07.495] [LOG] Node server stopped.