MultiOgarII: [FATAL] TypeError: Cannot read property 'destroy' of null
Whenever I connect to my server, the console quits and shows this error:
[FATAL] TypeError: Cannot read property 'destroy' of null
at WebSocket.onClose (/home/pi/Teams/src/GameServer.js:288:23)
at emitTwo (events.js:111:20)
at WebSocket.emit (events.js:191:7)
at WebSocket.emitClose (/home/pi/Teams/node_modules/ws/lib/WebSocket.js:224:10)
at _receiver.cleanup (/home/pi/Teams/node_modules/ws/lib/WebSocket.js:210:41)
at Receiver.cleanup (/home/pi/Teams/node_modules/ws/lib/Receiver.js:500:15)
at WebSocket.finalize (/home/pi/Teams/node_modules/ws/lib/WebSocket.js:210:22)
at emitNone (events.js:91:20)
at Socket.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
Can anyone help?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (3 by maintainers)
No worries for thread spam, it’s logs at the most, we accept them.
In the meantime there’s a simple workaround for this problem; replace the line 288 of
GameServer.jswith this: