Skip to content

Commit 213b833

Browse files
committed
Fixed exception when cancelling adding an account on a slow internet connection
1 parent ab43da6 commit 213b833

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/net/raphimc/viaproxy/ui/impl/AccountsTab.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ private void handleLogin(final TFunction<Consumer<MsaDeviceCode>, Account> reque
281281
ViaProxyWindow.showError(I18n.get("tab.accounts.add.timeout", "60"));
282282
});
283283
} catch (Throwable t) {
284+
if (t.getCause() instanceof InterruptedException) {
285+
return;
286+
}
287+
284288
SwingUtilities.invokeLater(() -> {
285289
this.closePopup();
286290
ViaProxyWindow.showException(t);

0 commit comments

Comments
 (0)