[Modify] Move it
This commit is contained in:
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…
Reference in New Issue
Block a user