File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -655,19 +655,22 @@ public void Start()
655655
656656 public void Stop ( )
657657 {
658- running = false ; // Otherwise keepalive restarts them
659- Utilities . TelemetryService . Telemetry . Stop ( ) ;
660- eventHandlerTS . Cancel ( ) ;
661- foreach ( IEddiResponder responder in responders )
658+ if ( running )
662659 {
663- DisableResponder ( responder . ResponderName ( ) ) ;
664- }
665- foreach ( IEddiMonitor monitor in monitors )
666- {
667- DisableMonitor ( monitor . MonitorName ( ) ) ;
668- }
660+ running = false ; // Otherwise keepalive restarts them
661+ Utilities . TelemetryService . Telemetry . Stop ( ) ;
662+ eventHandlerTS . Cancel ( ) ;
663+ foreach ( IEddiResponder responder in responders )
664+ {
665+ DisableResponder ( responder . ResponderName ( ) ) ;
666+ }
667+ foreach ( IEddiMonitor monitor in monitors )
668+ {
669+ DisableMonitor ( monitor . MonitorName ( ) ) ;
670+ }
669671
670- Logging . Info ( Constants . EDDI_NAME + " " + Constants . EDDI_VERSION + " stopped" ) ;
672+ Logging . Info ( Constants . EDDI_NAME + " " + Constants . EDDI_VERSION + " stopped" ) ;
673+ }
671674 }
672675
673676 /// <summary>
You can’t perform that action at this time.
0 commit comments