mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
Postpone restart after plugin (de)installation
This commit is contained in:
@@ -243,7 +243,13 @@ public class DefaultPluginManager implements PluginManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void restart(String cause) {
|
private void restart(String cause) {
|
||||||
eventBus.post(new RestartEvent(PluginManager.class, cause));
|
new Thread(() -> {
|
||||||
|
try {
|
||||||
|
Thread.sleep(200);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
}
|
||||||
|
eventBus.post(new RestartEvent(PluginManager.class, cause));
|
||||||
|
}).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cancelPending(List<PendingPluginInstallation> pendingInstallations) {
|
private void cancelPending(List<PendingPluginInstallation> pendingInstallations) {
|
||||||
|
|||||||
Reference in New Issue
Block a user