Skip to content

Commit

Permalink
Don't sent _sessionId without an outSocket.
Browse files Browse the repository at this point in the history
  • Loading branch information
ludost committed Feb 12, 2018
1 parent 00c8944 commit 6bb3476
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/transport/nanomsg/NanoMsgConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ function NanoMsgConnection(transport, id, receive) {
var sender = wrapper[0];
var message = JSON.parse(wrapper[1]);

if (message._sessionId && me.outSockets[sender]){
me.outSockets[sender].sessionId = message._sessionId;
if (message._sessionId){
if (me.outSockets[sender]){
me.outSockets[sender].sessionId = message._sessionId;
}
return;
}
if (me.sessionIds[sender]){
Expand Down

0 comments on commit 6bb3476

Please sign in to comment.