Remove popup when UI thread is blocked for > 20 sec.

Fixes https://github.com/bisq-network/bisq/issues/6703

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2023-05-17 16:42:27 +07:00
parent ac8ad24807
commit 4475857db3
No known key found for this signature in database
GPG Key ID: 02AA2BAE387C8307

View File

@ -635,7 +635,12 @@ public class MainViewModel implements ViewModel, BisqSetup.BisqSetupListener {
@Override
public void onAwakeFromStandby(long missedMs) {
if (missedMs > TimeUnit.SECONDS.toMillis(10)) {
String key = "clockWatcherWarning";
log.warn("UI thread has been blocked for {} sec", (int) missedMs / 1000);
// See: https://github.com/bisq-network/bisq/issues/6703
// Keep original code as once the blocking UI thread issue is
// fixed (https://github.com/bisq-network/bisq/issues/6704) we can re-enable it.
/* String key = "clockWatcherWarning";
if (DontShowAgainLookup.showAgain(key)) {
new Popup().warning(Res.get("mainView.networkWarning.clockWatcher", missedMs / 1000))
.actionButtonText(Res.get("shared.iUnderstand"))
@ -643,7 +648,7 @@ public class MainViewModel implements ViewModel, BisqSetup.BisqSetupListener {
.dontShowAgainId(key)
.hideCloseButton()
.show();
}
}*/
}
}
};