Skip to content

Commit 2fb058b

Browse files
committed
hotfix: deploy指令部署时服务在运行时上传失败时卡住的bug
1 parent 35a04d9 commit 2fb058b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/src/main/java/io/github/majianzheng/jarboot/tools/client/command/DeployCommand.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,10 @@ private synchronized void sendFile() {
228228
}
229229
} catch (InterruptedException e) {
230230
Thread.currentThread().interrupt();
231+
finishOne();
231232
} catch (Exception e) {
232233
AnsiLog.error(e);
234+
finishOne();
233235
} finally {
234236
lock.unlock();
235237
}
@@ -296,12 +298,14 @@ private synchronized void startUpload() {
296298
@OnClose
297299
public void onClosed(Session session) {
298300
updateProgress();
301+
finishOne();
299302
}
300303

301304
@OnError
302305
public void onFailure(Throwable t) {
303306
updateProgress();
304307
AnsiLog.error(t);
308+
finishOne();
305309
}
306310

307311
private synchronized void updateProgress() {

0 commit comments

Comments
 (0)