We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1260208 commit 5e44280Copy full SHA for 5e44280
Sources/SwiftOCA/OCP.1/Backend/Ocp1FlyingSocksConnection.swift
@@ -95,6 +95,11 @@ private actor AsyncSocketPoolMonitor {
95
return pool
96
}
97
98
+ func stop() {
99
+ task?.cancel()
100
+ task = nil
101
+ }
102
+
103
deinit {
104
if let task {
105
task.cancel()
@@ -138,6 +143,7 @@ public class Ocp1FlyingSocksConnection: Ocp1Connection {
138
143
139
144
140
145
override public func disconnectDevice(clearObjectCache: Bool) async throws {
146
+ await AsyncSocketPoolMonitor.shared.stop()
141
147
if let asyncSocket {
142
148
try asyncSocket.close()
149
self.asyncSocket = nil
0 commit comments