[Fix] Handle it
This commit is contained in:
parent
6d1ea18c0d
commit
9317a7e6b8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user