[Modify] Move it

master
sta 7 years ago
parent f25684de03
commit dee7cb9e5f

@ -68,6 +68,7 @@ namespace WebSocketSharp.Net
public CookieCollection () public CookieCollection ()
{ {
_list = new List<Cookie> (); _list = new List<Cookie> ();
_sync = ((ICollection) _list).SyncRoot;
} }
#endregion #endregion
@ -191,7 +192,7 @@ namespace WebSocketSharp.Net
/// </value> /// </value>
public Object SyncRoot { public Object SyncRoot {
get { get {
return _sync ?? (_sync = ((ICollection) _list).SyncRoot); return _sync;
} }
} }

Loading…
Cancel
Save