mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-09-10 15:39:25 +00:00
rework module shutdown process to cancel module context in defer
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ func (mcm *MockCounterModule) Type() string {
|
||||
|
||||
func (mcm *MockCounterModule) Stop() {
|
||||
if mcm.cancel != nil {
|
||||
mcm.cancel()
|
||||
defer mcm.cancel()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user