diff --git a/websocket-sharp/Net/CookieCollection.cs b/websocket-sharp/Net/CookieCollection.cs
index 8f91063a..cd454d31 100644
--- a/websocket-sharp/Net/CookieCollection.cs
+++ b/websocket-sharp/Net/CookieCollection.cs
@@ -628,11 +628,19 @@ namespace WebSocketSharp.Net
///
/// A that contains the cookies to add.
///
+ ///
+ /// The collection is read-only.
+ ///
///
/// is .
///
public void Add (CookieCollection cookies)
{
+ if (_readOnly) {
+ var msg = "The collection is read-only.";
+ throw new InvalidOperationException (msg);
+ }
+
if (cookies == null)
throw new ArgumentNullException ("cookies");