Skip to content

Commit

Permalink
emit after subrequests are actually done
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 6, 2011
1 parent 8dcbf40 commit e56953f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ exports.serverMsg[serverMsgTypes.fbUpdate] = function (rfb, opts) {
}

var bpp = vars.pf.bitsPerPixel / 8;

this.into('rect', function (rect) {
rect.nRects = vars.nRects;
rect.type = 'unknownRect';
Expand Down Expand Up @@ -96,9 +96,10 @@ exports.serverMsg[serverMsgTypes.fbUpdate] = function (rfb, opts) {
*/
break;
}

rfb.emit(rect.type, rect);
})
.tap(function () {
rfb.emit(rect.type, rect);
});
})
})
};

0 comments on commit e56953f

Please sign in to comment.