mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-06-30 20:10:57 +12:00
Always wait when performing action after exit
This commit is contained in:
parent
41965a521b
commit
65cec08224
|
@ -211,6 +211,11 @@ public abstract class OperationMode {
|
||||||
OperationMode.halt(1);
|
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);
|
OperationMode.halt(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -229,11 +229,6 @@ public abstract class UpdateHandler {
|
||||||
preparedUpdate.getValue().getVersion());
|
preparedUpdate.getValue().getVersion());
|
||||||
AppCache.update("performedUpdate", performedUpdate);
|
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