[Modify] Polish it

This commit is contained in:
sta 2017-09-03 17:26:58 +09:00
parent c0fb99d51a
commit 9cc63fd5be

View File

@ -1505,10 +1505,16 @@ namespace WebSocketSharp
try { try {
_pongReceived.Set (); _pongReceived.Set ();
} }
catch (NullReferenceException) { catch (NullReferenceException ex) {
_logger.Error (ex.Message);
_logger.Debug (ex.ToString ());
return false; return false;
} }
catch (ObjectDisposedException) { catch (ObjectDisposedException ex) {
_logger.Error (ex.Message);
_logger.Debug (ex.ToString ());
return false; return false;
} }