We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RedisConnection
1 parent 0797c3f commit 51dd32dCopy full SHA for 51dd32d
Sources/NIORedis/RedisClient.swift
@@ -50,7 +50,10 @@ public final class RedisConnection: RedisClient {
50
private var sentQuitCommand = Atomic<Bool>(value: false)
51
52
deinit {
53
- assert(sentQuitCommand.load(), "RedisConnection did not properly shutdown before deinit!")
+ if !sentQuitCommand.load() {
54
+ assertionFailure("close() was not called before deinit!")
55
+ logger.warning("RedisConnection did not properly shutdown before deinit!")
56
+ }
57
}
58
59
/// Creates a new connection on the provided `Channel`.
0 commit comments