[Modify] Polish it
This commit is contained in:
		@@ -649,19 +649,20 @@ namespace WebSocketSharp
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        try {
 | 
			
		||||
          if (acceptHandshake ()) {
 | 
			
		||||
          if (!acceptHandshake ())
 | 
			
		||||
            return false;
 | 
			
		||||
 | 
			
		||||
          _readyState = WebSocketState.Open;
 | 
			
		||||
          return true;
 | 
			
		||||
        }
 | 
			
		||||
        }
 | 
			
		||||
        catch (Exception ex) {
 | 
			
		||||
          _logger.Fatal (ex.ToString ());
 | 
			
		||||
          fatal ("An exception has occurred while accepting.", ex);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
          return false;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // As server
 | 
			
		||||
    private bool acceptHandshake ()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user