Permalink
Browse files

when received PDU > 0x80000000, MsgType is Resp

  • Loading branch information...
1 parent 7f59307 commit 70d3b67b1ef60a500e367f5b143d37a5e54bc413 @kaven276 committed Jun 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Commands.js
View
@@ -131,7 +131,7 @@ Msg.readHeader = function(buf){
Msg.parse = function(data){
var cmdID = data.readUInt32BE(4);
- if (data)
+ if (cmdID > 0x80000000)
MsgType = CmdMap[cmdID - 0x80000000].Resp;
else
MsgType = CmdMap[cmdID];

0 comments on commit 70d3b67

Please sign in to comment.