Skip to content

Commit

Permalink
Fix #44 freezing NativeListener on mono 4.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xplicit committed Dec 8, 2015
1 parent 8f7986c commit 227cc58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HyperFastCgi/Listeners/NativeListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public int Listen ()
int retval = NativeListener.Listen ((ushort)config.Family, config.Address, (ushort)config.Port);
//retval == 0 when no error occured
if (retval == 0) {
ThreadPool.QueueUserWorkItem (_ => NativeListener.ProcessLoop ());
new Thread (_ => NativeListener.ProcessLoop ()).Start ();
}

return retval;
Expand Down

0 comments on commit 227cc58

Please sign in to comment.