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