Skip to content

Commit 8358ac0

Browse files
committed
chore: Removed unnecessary Thread.sleep(3000) before starting Jicofo
1 parent ed84a3b commit 8358ac0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/java/org/jivesoftware/openfire/plugin/ofmeet/JitsiJicofoWrapper.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ public synchronized void initialize( File pluginDirectory) throws Exception
170170
Log.error("createConfigFile error", e);
171171
}
172172

173-
// Jicofo tries to autonomously connect to XMPP as soon as it starts due to the brewery-jid setting. However, if Openfire is not fully ready (especially the 5222 C2S port), the connection fails. To avoid this, it's recommended to delay Jicofo startup until XMPPServer.isStarted() and ConnectionManager.isClientListenerActive() both return true.
174-
Thread.sleep(3000);
175-
176173
final String javaHome = System.getProperty("java.home");
177174
String defaultOptions = "-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp";
178175
String javaExec = javaHome + File.separator + "bin" + File.separator + "java";

0 commit comments

Comments
 (0)