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:
Marc Carré
2018-07-23 20:10:19 +02:00
parent e07b093b1c
commit bcbc462842
3 changed files with 28 additions and 7 deletions
+2 -1
View File
@@ -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,