From e68fe9033d535edd82a4ba08d59e43d4f96fe0c9 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 31 Aug 2013 09:12:37 -0700 Subject: [PATCH] If nzbdrone restarts mid command the client will treat it as failed --- UI/Shared/Actioneer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UI/Shared/Actioneer.js b/UI/Shared/Actioneer.js index ac59a7ff8..516a0e7b7 100644 --- a/UI/Shared/Actioneer.js +++ b/UI/Shared/Actioneer.js @@ -67,6 +67,10 @@ define( var command = CommandCollection.find({ 'id': trackedCommand.id }); if (!command) { + trackedCommand.completed = true; + + self._onError(options, trackedCommand.id); + self._onComplete(options); return; } @@ -75,6 +79,7 @@ define( self._onSuccess(options, command.get('id')); self._onComplete(options); + return; } if (command.get('state') === 'failed') {