Skip to content

Commit 0a4967f

Browse files
DaanHooglandweizhouapache
authored andcommitted
console proxy client sleep more generic (apache#8694)
* Make wait in the noVNC console proxy client more generic * Update services/console-proxy/server/src/main/java/com/cloud/consoleproxy/ConsoleProxyNoVncClient.java Co-authored-by: Wei Zhou <weizhou@apache.org> --------- Co-authored-by: Wei Zhou <weizhou@apache.org>
1 parent 3367b34 commit 0a4967f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

services/console-proxy/server/src/main/java/com/cloud/consoleproxy/ConsoleProxyNoVncClient.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ public void run() {
140140
connectionAlive = false;
141141
}
142142
}
143+
try {
144+
Thread.sleep(1);
145+
} catch (InterruptedException e) {
146+
s_logger.error("Error on sleep for vnc sessions", e);
147+
}
143148
}
144149
logger.info(String.format("Connection with client [%s] is dead.", clientId));
145150
} catch (IOException e) {

0 commit comments

Comments
 (0)