From 751eef37cdfdb7b45ff199dd1fadd00bf02d5d6c Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 19 Jun 2011 18:15:13 +0000 Subject: - Ensure the connection delegate is nil on initialisation --- Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m index 0e403eaf..3d0ee5ab 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m @@ -166,7 +166,8 @@ static BOOL sTruncateLongFieldInLogs = YES; lastQueryErrorId = 0; lastQueryErrorMessage = nil; lastQueryAffectedRows = 0; - lastPingSuccess = NO; + lastPingSuccess = NO; + delegate = nil; delegateSupportsConnectionLostDecisions = NO; delegateResponseToWillQueryString = NO; -- cgit v1.2.3