diff options
author | Simon Rettberg | 2015-08-17 21:05:52 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-08-17 21:05:52 +0200 |
commit | cd097c9d13c54a1c3df411676c927038bc7c5375 (patch) | |
tree | d336b347617e8f030ccdfed440bb8d5f86c424fc /dozentenmodulserver | |
parent | [server] Add missing Identity.java (diff) | |
download | tutor-module-cd097c9d13c54a1c3df411676c927038bc7c5375.tar.gz tutor-module-cd097c9d13c54a1c3df411676c927038bc7c5375.tar.xz tutor-module-cd097c9d13c54a1c3df411676c927038bc7c5375.zip |
[server] Only retry on transport error
Diffstat (limited to 'dozentenmodulserver')
-rw-r--r-- | dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java index e7d0b9aa..dee43127 100644 --- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java +++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java @@ -64,7 +64,7 @@ public class App { @Override public boolean thriftError(int failCount, String method, Throwable t) { - if (failCount > 2) { + if (failCount > 2 || (t != null && !(t instanceof TTransportException))) { LOGGER.warn("Thrift Client error for " + method + ", FAIL."); return false; } |