diff --git a/src/SSLSocket.m b/src/SSLSocket.m index 3bd30d7..7cf0776 100644 --- a/src/SSLSocket.m +++ b/src/SSLSocket.m @@ -39,7 +39,7 @@ #import #import #import -#import +#import #import #import #import @@ -233,7 +233,7 @@ locking_callback(int mode, int n, const char *file, int line) @throw [OFOutOfRangeException exception]; if (_socket == INVALID_SOCKET) - @throw [OFNotConnectedException exceptionWithSocket: self]; + @throw [OFNotOpenException exceptionWithObject: self]; if (_atEndOfStream) @throw [OFReadFailedException exceptionWithObject: self @@ -261,7 +261,7 @@ locking_callback(int mode, int n, const char *file, int line) @throw [OFOutOfRangeException exception]; if (_socket == INVALID_SOCKET) - @throw [OFNotConnectedException exceptionWithSocket: self]; + @throw [OFNotOpenException exceptionWithObject: self]; if (_atEndOfStream) @throw [OFWriteFailedException exceptionWithObject: self