From 97f195eb1fa22b7ea37ffdb265222138106c1634 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 23 May 2016 15:06:33 +0900 Subject: [PATCH] [Modify] Add it --- websocket-sharp/Net/HttpConnection.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/websocket-sharp/Net/HttpConnection.cs b/websocket-sharp/Net/HttpConnection.cs index 793bf1ab..599882c9 100644 --- a/websocket-sharp/Net/HttpConnection.cs +++ b/websocket-sharp/Net/HttpConnection.cs @@ -409,6 +409,15 @@ namespace WebSocketSharp.Net _contextRegistered = false; } + private void unregisterContext () + { + if (!_contextRegistered) + return; + + _context.Listener.UnregisterContext (_context); + _contextRegistered = false; + } + #endregion #region Internal Methods