IDEMPIERE-3516:Spurious wakeups on EventManager
This commit is contained in:
parent
e8bf4a03cb
commit
d2acbd8e74
|
@ -72,7 +72,7 @@ public class EventManager implements IEventManager {
|
||||||
*/
|
*/
|
||||||
public static IEventManager getInstance() {
|
public static IEventManager getInstance() {
|
||||||
synchronized (mutex) {
|
synchronized (mutex) {
|
||||||
if (instance == null) {
|
while (instance == null) {
|
||||||
try {
|
try {
|
||||||
mutex.wait(10000);
|
mutex.wait(10000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
|
Loading…
Reference in New Issue