From 82912b280a6c7be894b2969ab09db36e8be8cde6 Mon Sep 17 00:00:00 2001 From: Tanner Date: Sat, 18 Jan 2020 21:42:01 -0800 Subject: [PATCH] fix APNSwiftConnection.isClosed (#14) --- Sources/APNS/APNSConnectionSource.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/APNS/APNSConnectionSource.swift b/Sources/APNS/APNSConnectionSource.swift index 908d4c2..2c19520 100644 --- a/Sources/APNS/APNSConnectionSource.swift +++ b/Sources/APNS/APNSConnectionSource.swift @@ -21,6 +21,6 @@ extension APNSwiftConnection: ConnectionPoolItem { } public var isClosed: Bool { - self.channel.isActive + !self.channel.isActive } }