From 400741b8ba93a07c6beff5ca4c1bf0fcef0bbc37 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 29 May 2011 16:36:28 -0400 Subject: [PATCH] In NetworkCallbackController::WriteStreamCanAcceptBytes, check that writeStream_ exists --- Source/NetworkCallbackController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NetworkCallbackController.mm b/Source/NetworkCallbackController.mm index 630ff97..16ab54f 100644 --- a/Source/NetworkCallbackController.mm +++ b/Source/NetworkCallbackController.mm @@ -87,7 +87,7 @@ void NetworkCallbackController::CloseConnection() BOOL NetworkCallbackController::WriteStreamCanAcceptBytes() { - return CFWriteStreamCanAcceptBytes(writeStream_); + return writeStream_ && CFWriteStreamCanAcceptBytes(writeStream_); } BOOL NetworkCallbackController::WriteString(NSString* string) -- 2.43.5