This commit is contained in:
Alex Grintsvayg 2017-12-29 18:51:38 -05:00
parent 039ed1a7eb
commit 70c6ee7ddb

View file

@ -111,6 +111,7 @@ func (s *Sync) FullCycle() error {
signal.Notify(interruptChan, os.Interrupt, syscall.SIGTERM)
go func() {
<-interruptChan
log.Println("Got interrupt signal. Will shut down after current publishes finish")
s.stop.Stop()
}()