You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2020/12/01 13:45:23 UTC
[openmeetings] branch master updated: [OPENMEETINGS-2529] thread is
started with wicket helper
This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git
The following commit(s) were added to refs/heads/master by this push:
new f009f6b [OPENMEETINGS-2529] thread is started with wicket helper
f009f6b is described below
commit f009f6b530d90a52a2a389fce8d7e9b8a93ca8d6
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Tue Dec 1 20:45:06 2020 +0700
[OPENMEETINGS-2529] thread is started with wicket helper
---
.../org/apache/openmeetings/web/pages/install/InstallWizard.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/pages/install/InstallWizard.java b/openmeetings-web/src/main/java/org/apache/openmeetings/web/pages/install/InstallWizard.java
index 36d3fb0..0f8f322 100644
--- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/pages/install/InstallWizard.java
+++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/pages/install/InstallWizard.java
@@ -55,6 +55,7 @@ import org.apache.openmeetings.web.app.WebSession;
import org.apache.openmeetings.web.common.ErrorMessagePanel;
import org.apache.openmeetings.web.common.OmLabel;
import org.apache.openmeetings.web.util.OmTooltipBehavior;
+import org.apache.openmeetings.web.util.ThreadHelper;
import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.attributes.AjaxRequestAttributes;
@@ -783,8 +784,8 @@ public class InstallWizard extends BootstrapWizard {
@Override
public void applyState() {
started = true;
- new Thread(new InstallProcess(initvalues)
- , "Openmeetings - Installation").start();
+ ThreadHelper.startRunnable(new InstallProcess(initvalues)
+ , "Openmeetings - Installation");
desc.setDefaultModelObject(getString("install.wizard.install.started"));
RequestCycle.get().find(AjaxRequestTarget.class).ifPresent(target -> {
progressBar.restart(target).setModelObject(0);