aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@corp.mail.ru>2019-01-11 17:28:36 +0300
committerAlexander Kiryukhin <a.kiryukhin@corp.mail.ru>2019-01-11 17:28:36 +0300
commitd64ca3bd06c6a2c702f3604d95658566907a9beb (patch)
tree376088139d7cf00e4263ed2809640411768abb0b
parent35314abd1405e8d063ecd3e250c019b6937e5cc1 (diff)
Fix cancel context on signalv0.1.0
-rwxr-xr-xrutina.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/rutina.go b/rutina.go
index a3df532..0f9a9da 100755
--- a/rutina.go
+++ b/rutina.go
@@ -54,7 +54,6 @@ func (r *Rutina) ListenTermSignals() {
signal.Notify(sig, syscall.SIGTERM, syscall.SIGINT)
select {
case <-sig:
- r.cancel()
case <-ctx.Done():
}
return nil