Skip to content

Commit f8d153b

Browse files
committed
Fix: Flickering dialog issue when waiting for conductor server election.
1 parent 84160de commit f8d153b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

htdocs/js/comm.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ app.comm = {
7777

7878
Debug.trace('comm', "WebSocket connected successfully");
7979

80-
if (Dialog.progress) {
81-
Dialog.hideProgress();
82-
}
83-
8480
// authenticate websocket now
8581
socket.emit( 'authenticate', {} );
8682
};
@@ -141,6 +137,7 @@ app.comm = {
141137

142138
case 'auth_failure':
143139
// authentiation failure (should never happen)
140+
if (Dialog.progress) Dialog.hideProgress();
144141
var msg = data.description;
145142
app.doError(msg);
146143
app.doUserLogout(true);
@@ -155,6 +152,8 @@ app.comm = {
155152

156153
case 'login':
157154
// auth successful
155+
if (Dialog.progress) Dialog.hideProgress();
156+
158157
Debug.trace('user', "WebSocket auth successful!");
159158
socket.auth = true;
160159

0 commit comments

Comments
 (0)