Skip to content
Snippets Groups Projects
Commit 0c3e5a3c authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Stop the network follower when deleting a cMix instance

parent 41e965d7
No related branches found
No related tags found
1 merge request!703Some changes for Phoenixx
...@@ -221,10 +221,11 @@ func GetCMixInstance(instanceID int) (*Cmix, error) { ...@@ -221,10 +221,11 @@ func GetCMixInstance(instanceID int) (*Cmix, error) {
} }
func DeleteCmixInstance(instanceID int) error { func DeleteCmixInstance(instanceID int) error {
_, ok := cmixTrackerSingleton.tracked[instanceID] cmix, ok := cmixTrackerSingleton.tracked[instanceID]
if !ok { if !ok {
return errors.Errorf("no cmix instance id: %d", instanceID) return errors.Errorf("no cmix instance id: %d", instanceID)
} }
cmix.StopNetworkFollower()
cmixTrackerSingleton.delete(instanceID) cmixTrackerSingleton.delete(instanceID)
return nil return nil
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment