diff --git a/context/stoppable/single.go b/context/stoppable/single.go index 668e297f2474556d0724c51963fa023dd7243d75..2414f724a653b43564f7dfbe03cb579f4ffc643d 100644 --- a/context/stoppable/single.go +++ b/context/stoppable/single.go @@ -31,8 +31,8 @@ func (s *Single) IsRunning() bool { } // returns the read only channel it will send the stop signal on -func (s *Single) Sigal() bool { - return atomic.LoadUint32(s.running) == 1 +func (s *Single) Quit() <-chan struct{} { + return s.quit } // returns the name of the thread. This is designed to be