Skip to content

Commit f776273

Browse files
committed
plugins/openvscode-drive: Work around race condition when launching noVNC proxy server
If the noVNC proxy comes up after the VSCode server, our proxy will not find the former's URL in the stdout log. Sacrifice two seconds of loading time to avoid this problem.
1 parent 219c61f commit f776273

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/openvscode-drive

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ then
3434

3535
Xvnc -SecurityTypes None -localhost -nolisten local ":$display" 2>/dev/null &
3636
novnc_proxy --vnc ":$((X11_PORT + display))" --listen $((VNC_PORT + display)) 2>/dev/null &
37+
sleep 2
3738

3839
export DISPLAY=":$display"
3940
fi

0 commit comments

Comments
 (0)