[Modify] Replace it

This commit is contained in:
sta 2016-03-11 14:35:16 +09:00
parent 18597a35c1
commit 12e7fb1498

View File

@ -593,10 +593,10 @@ namespace WebSocketSharp
set {
lock (_forConn) {
var msg = checkIfAvailable (true, true, true, false, false, true) ??
value.CheckIfValidWaitTime ();
if (msg != null) {
string msg;
if (!checkIfAvailable (true, true, true, false, false, true, out msg)
|| !value.CheckWaitTime (out msg)
) {
_logger.Error (msg);
error ("An error has occurred in setting the wait time.", null);