From 3eb021241c4696b248cf8f9a2d6cdd8198a43de0 Mon Sep 17 00:00:00 2001 From: Dima Rostopira Date: Fri, 2 Aug 2019 13:32:11 +0300 Subject: [PATCH] Remove weak modifier (fixes issue #190) --- Sources/ParseLiveQuery/Internal/ClientPrivate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ParseLiveQuery/Internal/ClientPrivate.swift b/Sources/ParseLiveQuery/Internal/ClientPrivate.swift index e3a0f69a..3e227638 100644 --- a/Sources/ParseLiveQuery/Internal/ClientPrivate.swift +++ b/Sources/ParseLiveQuery/Internal/ClientPrivate.swift @@ -33,7 +33,7 @@ private func parseObject(_ objectDictionary: [String:AnyObject]) th extension Client { class SubscriptionRecord { - weak var subscriptionHandler: AnyObject? + var subscriptionHandler: AnyObject? // HandlerClosure captures the generic type info passed into the constructor of SubscriptionRecord, // and 'unwraps' it so that it can be used with just a 'PFObject' instance. // Technically, this should be a compiler no-op, as no witness tables should be used as 'PFObject' currently inherits from NSObject.