Skip to content
Browse files

Wrap process hollaback in setImmediate

Fixes #25
  • Loading branch information...
1 parent 049d001 commit a8f7ce3024b6f6e6cff3936c852f2e17e36f8dfb Eli Mallon committed Feb 16, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/sandbox.js
View
4 lib/sandbox.js
@@ -23,7 +23,9 @@ function Sandbox( options ) {
child.stdout.on( 'data', output )
child.on( 'exit', function( code ) {
clearTimeout( timer )
- hollaback.call( this, JSON.parse( stdout ) )
+ setImmediate(function(){
+ hollaback.call( this, JSON.parse( stdout ) )
+ })
})
// Go

0 comments on commit a8f7ce3

Please sign in to comment.
Something went wrong with that request. Please try again.