[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)
{
var lsnr = context.Listener;
if (!lsnr.Authenticate (context)) {
lsnr.BeginGetContext (this);
try {
var lsnr = context.Listener;
if (!lsnr.Authenticate (context)) {
lsnr.BeginGetContext (this);
return;
}
}
catch (Exception ex) {
Complete (ex);
return;
}