Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Commit

Permalink
Cleanup WebSockets.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tratcher committed Apr 22, 2015
1 parent 2577c16 commit db66744
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Microsoft.AspNet.Http/DefaultWebSocketManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public override bool IsWebSocketRequest
{
get
{
var webSocketFeature = WebSocketFeature;
return webSocketFeature != null && webSocketFeature.IsWebSocketRequest;
return WebSocketFeature != null && WebSocketFeature.IsWebSocketRequest;
}
}

Expand All @@ -54,7 +53,6 @@ public override IList<string> WebSocketRequestedProtocols

public override Task<WebSocket> AcceptWebSocketAsync(string subProtocol)
{
var webSocketFeature = WebSocketFeature;
if (WebSocketFeature == null)
{
throw new NotSupportedException("WebSockets are not supported");
Expand Down

0 comments on commit db66744

Please sign in to comment.