Skip to content
Snippets Groups Projects
Commit fad0531d authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed the channel access for single stopper

parent c87aa7fb
No related branches found
No related tags found
No related merge requests found
...@@ -31,8 +31,8 @@ func (s *Single) IsRunning() bool { ...@@ -31,8 +31,8 @@ func (s *Single) IsRunning() bool {
} }
// returns the read only channel it will send the stop signal on // returns the read only channel it will send the stop signal on
func (s *Single) Sigal() bool { func (s *Single) Quit() <-chan struct{} {
return atomic.LoadUint32(s.running) == 1 return s.quit
} }
// returns the name of the thread. This is designed to be // returns the name of the thread. This is designed to be
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment