mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Always wait when performing action after exit
This commit is contained in:
parent
41965a521b
commit
65cec08224
2 changed files with 5 additions and 5 deletions
|
@ -211,6 +211,11 @@ public abstract class OperationMode {
|
|||
OperationMode.halt(1);
|
||||
}
|
||||
|
||||
// In case we perform any operations such as opening a terminal
|
||||
// give it some time to open while this process is still alive
|
||||
// Otherwise it might quit because the parent process is dead already
|
||||
ThreadHelper.sleep(1000);
|
||||
|
||||
OperationMode.halt(0);
|
||||
};
|
||||
|
||||
|
|
|
@ -229,11 +229,6 @@ public abstract class UpdateHandler {
|
|||
preparedUpdate.getValue().getVersion());
|
||||
AppCache.update("performedUpdate", performedUpdate);
|
||||
}
|
||||
|
||||
// In case we perform any operations such as opening a terminal
|
||||
// give it some time to open while this process is still alive
|
||||
// Otherwise it might quit because the parent process is dead already
|
||||
ThreadHelper.sleep(1000);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue