Browse Source

[Modify] Polish it

master
sta 1 month ago
parent
commit
a304b6ce59
  1. 19
      websocket-sharp/WebSocket.cs

19
websocket-sharp/WebSocket.cs

@ -1464,19 +1464,18 @@ namespace WebSocketSharp
if (_credentials == null)
return null;
if (_authChallenge != null) {
var ret = new AuthenticationResponse (
_authChallenge,
_credentials,
_nonceCount
);
if (_authChallenge == null)
return _preAuth ? new AuthenticationResponse (_credentials) : null;
_nonceCount = ret.NonceCount;
var ret = new AuthenticationResponse (
_authChallenge,
_credentials,
_nonceCount
);
return ret;
}
_nonceCount = ret.NonceCount;
return _preAuth ? new AuthenticationResponse (_credentials) : null;
return ret;
}
// As client

Loading…
Cancel
Save