[Modify] Polish it
This commit is contained in:
parent
d4b7e6dd2c
commit
f9b0c99b69
@ -1417,8 +1417,17 @@ namespace WebSocketSharp
|
|||||||
|
|
||||||
private bool processPongFrame (WebSocketFrame frame)
|
private bool processPongFrame (WebSocketFrame frame)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
_receivePong.Set ();
|
_receivePong.Set ();
|
||||||
_logger.Trace ("A pong frame was received.");
|
}
|
||||||
|
catch (NullReferenceException) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
catch (ObjectDisposedException) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
_logger.Trace ("It has been signaled that a pong was received.");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user