Strand94 / Sketchy

Prosjekt i Programvareutvikling
0 stars 1 forks source link

server crashes when "create lobby" is pressed #25

Closed michoy closed 6 years ago

michoy commented 6 years ago

/app/server-side/communicator.js:75 2018-04-15T15:56:57.236294+00:00 app[web.1]: connections[playerAddress].emit(events.UPDATE_LOBBY, playerList); 2018-04-15T15:56:57.236296+00:00 app[web.1]: ^ 2018-04-15T15:56:57.236299+00:00 app[web.1]: 2018-04-15T15:56:57.236302+00:00 app[web.1]: TypeError: Cannot read property 'emit' of undefined 2018-04-15T15:56:57.236304+00:00 app[web.1]: at Communicator.updateLobby (/app/server-side/communicator.js:75:36) 2018-04-15T15:56:57.236307+00:00 app[web.1]: at LobbyController.createLobby (/app/server-side/controllers/lobbyController.js:55:31) 2018-04-15T15:56:57.236308+00:00 app[web.1]: at Socket.socket.on.on.on (/app/server-side/communicator.js:47:37) 2018-04-15T15:56:57.236310+00:00 app[web.1]: at emitOne (events.js:116:13) 2018-04-15T15:56:57.236312+00:00 app[web.1]: at Socket.emit (events.js:211:7) 2018-04-15T15:56:57.236313+00:00 app[web.1]: at /app/node_modules/socket.io/lib/socket.js:527:12 2018-04-15T15:56:57.236315+00:00 app[web.1]: at _combinedTickCallback (internal/process/next_tick.js:131:7) 2018-04-15T15:56:57.236317+00:00 app[web.1]: at process._tickCallback (internal/process/next_tick.js:180:9) 2018-04-15T15:56:57.418001+00:00 heroku[web.1]: State changed from up to crashed 2018-04-15T15:56:57.391857+00:00 heroku[web.1]: Process exited with status 1