[Modify] Move it

This commit is contained in:
sta 2019-03-20 22:54:40 +09:00
parent f25684de03
commit dee7cb9e5f

View File

@ -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;
} }
} }