Make codacy happy

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2022-12-20 19:34:18 -05:00
parent abbee20284
commit e1d8d0a6a0
No known key found for this signature in database
GPG key ID: 02AA2BAE387C8307

View file

@ -219,11 +219,14 @@ public class RpcService {
});
}
}, MoreExecutors.directExecutor());
} catch (Exception e) {
if (!shutdownInProgress || !(e instanceof RejectedExecutionException)) {
} catch (RejectedExecutionException e) {
if (!shutdownInProgress) {
log.warn(e.toString(), e);
throw e;
}
} catch (Exception e) {
log.warn(e.toString(), e);
throw e;
}
}