Fix multiple status streams when reconnecting
This commit is contained in:
@@ -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