mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-e2e: less restrictive unhandled alert exception
parent
13317a888d
commit
28b1763b31
|
@ -99,8 +99,7 @@ public class OpenViduEventManager {
|
||||||
|
|
||||||
Thread.UncaughtExceptionHandler h = new Thread.UncaughtExceptionHandler() {
|
Thread.UncaughtExceptionHandler h = new Thread.UncaughtExceptionHandler() {
|
||||||
public void uncaughtException(Thread th, Throwable ex) {
|
public void uncaughtException(Thread th, Throwable ex) {
|
||||||
if (ex.getClass().getSimpleName().equals("UnhandledAlertException")
|
if (ex.getClass().getSimpleName().equals("UnhandledAlertException")) {
|
||||||
&& ex.getMessage().contains("unexpected alert open")) {
|
|
||||||
stopPolling(true, false);
|
stopPolling(true, false);
|
||||||
System.err
|
System.err
|
||||||
.println("Alert opened (" + ex.getMessage() + "). Waiting 1 second and restarting polling");
|
.println("Alert opened (" + ex.getMessage() + "). Waiting 1 second and restarting polling");
|
||||||
|
|
Loading…
Reference in New Issue