[Modify] Rename it

This commit is contained in:
sta 2016-05-22 16:03:06 +09:00
parent a8a342097e
commit 8a2798739b

View File

@ -62,7 +62,7 @@ namespace WebSocketSharp.Net
private byte[] _buffer; private byte[] _buffer;
private const int _bufferLength = 8192; private const int _bufferLength = 8192;
private HttpListenerContext _context; private HttpListenerContext _context;
private bool _contextBound; private bool _contextRegistered;
private StringBuilder _currentLine; private StringBuilder _currentLine;
private InputState _inputState; private InputState _inputState;
private RequestStream _inputStream; private RequestStream _inputStream;
@ -303,7 +303,7 @@ namespace WebSocketSharp.Net
} }
if (lsnr.RegisterContext (conn._context)) if (lsnr.RegisterContext (conn._context))
conn._contextBound = true; conn._contextRegistered = true;
return; return;
} }
@ -402,11 +402,11 @@ namespace WebSocketSharp.Net
private void unbind () private void unbind ()
{ {
if (!_contextBound) if (!_contextRegistered)
return; return;
_listener.UnbindContext (_context); _listener.UnbindContext (_context);
_contextBound = false; _contextRegistered = false;
} }
#endregion #endregion