Skip to content

Commit

Permalink
when received PDU > 0x80000000, MsgType is Resp
Browse files Browse the repository at this point in the history
  • Loading branch information
kaven276 committed Jun 4, 2012
1 parent 7f59307 commit 70d3b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Commands.js
Expand Up @@ -131,7 +131,7 @@ Msg.readHeader = function(buf){
Msg.parse = function(data){ Msg.parse = function(data){


var cmdID = data.readUInt32BE(4); var cmdID = data.readUInt32BE(4);
if (data) if (cmdID > 0x80000000)
MsgType = CmdMap[cmdID - 0x80000000].Resp; MsgType = CmdMap[cmdID - 0x80000000].Resp;
else else
MsgType = CmdMap[cmdID]; MsgType = CmdMap[cmdID];
Expand Down

0 comments on commit 70d3b67

Please sign in to comment.