jshuaf / Aquaforces

The land of the free
0 stars 0 forks source link

tws.game being undefined error #113

Open alexandernext opened 8 years ago

alexandernext commented 8 years ago
            throw e;
            ^

TypeError: Cannot read property 'crews' of undefined
    at /Users/Alexander/Documents/Aquaforces/sockets/host.js:75:27
    at next (native)
    at start (/Users/Alexander/Documents/Aquaforces/node_modules/yield-yield/index.js:203:20)
    at runner (/Users/Alexander/Documents/Aquaforces/node_modules/yield-yield/index.js:335:5)
    at fnc (/Users/Alexander/Documents/Aquaforces/node_modules/yield-yield/index.js:348:7)
    at WebSocket.tws.on.e (/Users/Alexander/Documents/Aquaforces/sockets/index.js:45:36)
    at emitTwo (events.js:106:13)
    at WebSocket.emit (events.js:191:7)
    at Receiver.ontext (/Users/Alexander/Documents/Aquaforces/node_modules/ws/lib/WebSocket.js:841:10)
    at /Users/Alexander/Documents/Aquaforces/node_modules/ws/lib/Receiver.js:536:18```
jshuaf commented 8 years ago

Not a yield-yield problem.tws.gameis undefined for some reason

alexandernext commented 8 years ago

this error's been with us since like the beginning of time

jshuaf commented 8 years ago

yield-yield just wraps... read the top of the stack

alexandernext commented 8 years ago

oops forget i ever said that -- still this error has been like this since forever -- don't think we ever fixed this since the beginning of july

jshuaf commented 8 years ago

Steps to reproduce?

alexandernext commented 8 years ago

I forgot -- but it was very specific