Handle queued actions also when thread is interrupted

This commit is contained in:
AsamK 2021-08-23 14:39:40 +02:00
parent 9a9dd3b217
commit 6dd1a21606
4 changed files with 19 additions and 27 deletions

View file

@ -134,8 +134,6 @@ public class DaemonCommand implements MultiLocalCommand {
break;
} catch (IOException e) {
logger.warn("Receiving messages failed, retrying", e);
} catch (InterruptedException ignored) {
break;
}
}
});

View file

@ -168,8 +168,6 @@ public class JsonRpcDispatcherCommand implements LocalCommand {
break;
} catch (IOException e) {
logger.warn("Receiving messages failed, retrying", e);
} catch (InterruptedException e) {
break;
}
}
});

View file

@ -158,7 +158,6 @@ public class ReceiveCommand implements ExtendedDbusCommand, LocalCommand {
handler);
} catch (IOException e) {
throw new IOErrorException("Error while receiving messages: " + e.getMessage());
} catch (InterruptedException ignored) {
}
}
}