Skip to content

Commit a41fe56

Browse files
committed
Fix deinit assertion
1 parent dcfd81b commit a41fe56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/NIORedis/NIORedisConnection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public final class NIORedisConnection {
1212

1313
private let channel: Channel
1414

15-
deinit { assert(!isClosed.load(), "Redis connection was not properly shut down!") }
15+
deinit { assert(isClosed.load(), "Redis connection was not properly shut down!") }
1616

1717
/// Creates a new connection on the provided channel, using the handler for executing commands.
1818
/// - Important: Call `close()` before deinitializing to properly cleanup resources!

0 commit comments

Comments
 (0)