[Fix] Handle it

This commit is contained in:
sta 2016-04-13 14:07:18 +09:00
parent 6d1ea18c0d
commit 9317a7e6b8

View File

@ -179,9 +179,15 @@ namespace WebSocketSharp.Net
internal void Complete (HttpListenerContext context, bool syncCompleted) internal void Complete (HttpListenerContext context, bool syncCompleted)
{ {
var lsnr = context.Listener; try {
if (!lsnr.Authenticate (context)) { var lsnr = context.Listener;
lsnr.BeginGetContext (this); if (!lsnr.Authenticate (context)) {
lsnr.BeginGetContext (this);
return;
}
}
catch (Exception ex) {
Complete (ex);
return; return;
} }