Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

emit after subrequests are actually done

  • Loading branch information...
commit e56953f1c765910b3917f9d100231558a78d374d 1 parent 8dcbf40
@substack authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/messages.js
View
7 lib/messages.js
@@ -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';
@@ -96,9 +96,10 @@ exports.serverMsg[serverMsgTypes.fbUpdate] = function (rfb, opts) {
*/
break;
}
-
- rfb.emit(rect.type, rect);
})
+ .tap(function () {
+ rfb.emit(rect.type, rect);
+ });
})
})
};
Please sign in to comment.
Something went wrong with that request. Please try again.