From d64ca3bd06c6a2c702f3604d95658566907a9beb Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Fri, 11 Jan 2019 17:28:36 +0300 Subject: Fix cancel context on signal --- rutina.go | 1 - 1 file changed, 1 deletion(-) 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 -- cgit v1.2.3