mscdex/node-oscar — Issue #4: Crash in _createFLAP
Author: DarkSilence
Created: 2011-10-17 08:45:10+00:00
State: open

Hello.

I have using node-oscar for few days, ands sometimes it crashes in _createFLAP function here:

var seqNum = conn.seqNum = (conn.seqNum === 0x7FFF ? 0 : conn.seqNum + 1);

Crash reason — conn is undefined, but I have no closing, or some other events, from connection... this is weird. May be you can help with this issue?

Also I fix a few bugs, and implement authRequest and authReply and change encoding to UNICODE. Here is my diff: https://github.com/DarkSilence/node-oscar/commit/f78cb898b8f22a3e83e97c9aea6b12dc78035578