From 0ad54fde06d119a1f9dadc68b5c3f242aa8cdbdf Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 9 Jan 2018 16:18:45 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpListenerRequest.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/websocket-sharp/Net/HttpListenerRequest.cs b/websocket-sharp/Net/HttpListenerRequest.cs index e1d23fc4..cc1940e8 100644 --- a/websocket-sharp/Net/HttpListenerRequest.cs +++ b/websocket-sharp/Net/HttpListenerRequest.cs @@ -322,12 +322,7 @@ namespace WebSocketSharp.Net /// public bool KeepAlive { get { - if (!_keepAliveSet) { - _keepAlive = _headers.KeepsAlive (_version); - _keepAliveSet = true; - } - - return _keepAlive; + return _headers.KeepsAlive (_version); } }