yingp 5 years ago
parent
commit
b027d15fd8

+ 5 - 1
uas-office-core/src/main/java/com/usoftchina/uas/office/util/Try.java

@@ -23,8 +23,12 @@ public class Try {
                 if (null != result) {
                     return result;
                 }
-                Thread.sleep(500);
             } catch (Exception e) {
+                throw new RuntimeException(e);
+            }
+            try {
+                Thread.sleep(500);
+            } catch (InterruptedException e) {
                 return null;
             }
         }