shadowsocks / shadowsocks-nodejs

https://github.com/shadowsocks/shadowsocks
Other
1.25k stars 724 forks source link

TypeError: Cannot call method 'resume' of null #61

Closed sunteya closed 11 years ago

sunteya commented 11 years ago

today, I upgrade shadowsocks-nodejs to master (1.3.7), nodejs(v0.8.16) About 8 hours later, the program catch the exception and exit.

/var/www/shadowsocks/lib/shadowsocks/local.js:197
              return connection.resume();
                                ^
TypeError: Cannot call method 'resume' of null
    at Socket.net.createServer.connection.on.buf (/var/www/shadowsocks/lib/shadowsocks/local.js:197:33)
    at Socket.EventEmitter.emit (events.js:93:17)
    at Object.afterWrite (net.js:603:10)