Fix multiple status streams when reconnecting
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -92,9 +92,7 @@ public class CommandClient: ObservableObject {
|
||||
if isConnected {
|
||||
return
|
||||
}
|
||||
if let connectTask {
|
||||
connectTask.cancel()
|
||||
}
|
||||
disconnect()
|
||||
connectTask = Task {
|
||||
await performConnection()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user