func (h runHandlers) shouldStop(daemon executors.DaemonController, ws *websocket.Conn, logger *logrus.Entry) bool {
	if daemon.ShouldStop() {
		daemon.Stopped()
		logger.Info("sending stop event")
		if err := ws.WriteJSON(newStoppedEvent()); err != nil {
			logger.WithError(err).Error("writing StoppedEvent")
			return true
		}
		return true
	}
	return false
}
// shouldStop - True if caller should stop, false otherwise.
True if caller should stop, false otherwise.
// shouldStop - True if caller should stop false otherwise .
func (h runHandlers) shouldStop(daemon executors.DaemonController, ws *websocket.Conn, logger *logrus.Entry) bool {
	if daemon.ShouldStop() {
		daemon.Stopped()
		logger.Info("sending stop event")
		if err := ws.WriteJSON(newStoppedEvent()); err != nil {
			logger.WithError(err).Error("writing StoppedEvent")
			return true
		}
		return true
	}
	return false
}
func ( h runHandlers ) shouldStop ( daemon executors . DaemonController , ws * websocket . Conn , logger * logrus . Entry ) bool { if daemon . ShouldStop ( ) { daemon . Stopped ( ) logger . Info ( " " ) if err := ws . WriteJSON ( newStoppedEvent ( ) ) ; err != nil { logger . WithError ( err ) . Error ( " " ) return true } return true } return false }
True if caller should stop, false otherwise.
True if caller should stop false otherwise .