Skip to content

Commit 905e737

Browse files
committed
handling case where user manually set timeout to be less that 1000
1 parent a15097d commit 905e737

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

webui/src/js/viewModels/user-settings-dialog.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ function(accUtils, ko, utils, i18n, ArrayDataProvider, project, wktLogger) {
7777
}
7878

7979
if ('connectivityTestTimeoutMilliseconds' in this.userSettings) {
80-
this.connectivityTestTimeoutSeconds(this.userSettings.connectivityTestTimeoutMilliseconds / 1000);
80+
let timeoutSecs = this.userSettings.connectivityTestTimeoutMilliseconds / 1000;
81+
if (timeoutSecs < 1) {
82+
timeoutSecs = 1;
83+
}
84+
this.connectivityTestTimeoutSeconds(timeoutSecs);
8185
}
8286

8387
if ('skipQuickstartAtStartup' in this.userSettings) {

0 commit comments

Comments
 (0)