lib/async/container/controller.rb in async-container-0.16.4 vs lib/async/container/controller.rb in async-container-0.16.5

- old
+ new

@@ -53,11 +53,13 @@ @notify.status!("Initializing...") end @signals = {} - trap(SIGHUP, &self.method(:restart)) + trap(SIGHUP) do + self.restart + end end def state_string if running? "running" @@ -136,9 +138,10 @@ # Make this swap as atomic as possible: old_container = @container @container = container + Async.logger.debug(self, "Stopping old container...") old_container&.stop @notify&.ready! rescue # If we are leaving this function with an exception, try to kill the container: container&.stop(false)