mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-01 00:12:30 +01:00
If nzbdrone restarts mid command the client will treat it as failed
This commit is contained in:
parent
0894fc0e77
commit
e68fe9033d
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user