mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 20:07:06 +00:00
Fix probe & app's shutdown to please signals.SignalHandlerLoop
Fixes: ``` not enough arguments in call to signals.SignalHandlerLoop have () want (logging.Interface, ...signals.SignalReceiver) ```
This commit is contained in:
+2
-1
@@ -110,9 +110,10 @@ func (p *Probe) Start() {
|
||||
}
|
||||
|
||||
// Stop stops the probe
|
||||
func (p *Probe) Stop() {
|
||||
func (p *Probe) Stop() error {
|
||||
close(p.quit)
|
||||
p.done.Wait()
|
||||
return nil
|
||||
}
|
||||
|
||||
// Publish will queue a report for immediate publication,
|
||||
|
||||
Reference in New Issue
Block a user