Skip to content

Commit

Permalink
Load stream + net modules before loading app code
Browse files Browse the repository at this point in the history
See #628 and #634
  • Loading branch information
bastimeyer committed Apr 12, 2019
1 parent 8d51172 commit fc952d4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ global.process.on( "uncaughtException", function( err ) {
});


// "pre-load" certain native node modules
// prevents a bug on Windows which causes all methods of stream.Writable.prototype to be missing
// on stream.Duplex.prototype, more specifically stream.Duplex.prototype.cork. Also related to
// all classes which extend stream.Duplex, like net.Socket.
// See https://github.com/streamlink/streamlink-twitch-gui/issues/628#issuecomment-481510654
require( "stream" );
require( "net" );


require( "shim" );
require( "jquery" );
require( "ember" );
Expand Down

0 comments on commit fc952d4

Please sign in to comment.