[Modify] Polish it
This commit is contained in:
parent
47b90511e1
commit
0a83818e0c
@ -48,8 +48,8 @@ namespace WebSocketSharp.Server
|
|||||||
{
|
{
|
||||||
#region Private Fields
|
#region Private Fields
|
||||||
|
|
||||||
private volatile bool _keepClean;
|
|
||||||
private object _forSweep;
|
private object _forSweep;
|
||||||
|
private volatile bool _keepClean;
|
||||||
private Logger _log;
|
private Logger _log;
|
||||||
private Dictionary<string, IWebSocketSession> _sessions;
|
private Dictionary<string, IWebSocketSession> _sessions;
|
||||||
private volatile ServerState _state;
|
private volatile ServerState _state;
|
||||||
@ -66,8 +66,8 @@ namespace WebSocketSharp.Server
|
|||||||
{
|
{
|
||||||
_log = log;
|
_log = log;
|
||||||
|
|
||||||
_keepClean = true;
|
|
||||||
_forSweep = new object ();
|
_forSweep = new object ();
|
||||||
|
_keepClean = true;
|
||||||
_sessions = new Dictionary<string, IWebSocketSession> ();
|
_sessions = new Dictionary<string, IWebSocketSession> ();
|
||||||
_state = ServerState.Ready;
|
_state = ServerState.Ready;
|
||||||
_sync = ((ICollection) _sessions).SyncRoot;
|
_sync = ((ICollection) _sessions).SyncRoot;
|
||||||
|
Loading…
Reference in New Issue
Block a user