From fad0531ddea74fb6d5c1e11b7e6a47a6e53437d5 Mon Sep 17 00:00:00 2001
From: Benjamin Wenger <ben@elixxir.ioo>
Date: Fri, 28 Aug 2020 11:55:07 -0700
Subject: [PATCH] fixed the channel access for single stopper

---
 context/stoppable/single.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/context/stoppable/single.go b/context/stoppable/single.go
index 668e297f2..2414f724a 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
-- 
GitLab