[Modify] Replace it
This commit is contained in:
parent
afe129fd92
commit
536a7d4381
@ -502,13 +502,7 @@ namespace WebSocketSharp.Net
|
||||
if (cookie == null)
|
||||
throw new ArgumentNullException ("cookie");
|
||||
|
||||
var idx = searchCookie (cookie);
|
||||
if (idx == -1) {
|
||||
_list.Add (cookie);
|
||||
return;
|
||||
}
|
||||
|
||||
_list[idx] = cookie;
|
||||
add (cookie);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user