[Fix] Handle it

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

View File

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