Skip to content

Commit 74da723

Browse files
committed
Only ping github 1 time to check internet connection: Fixes GUI hanging on Linux
1 parent 4253aa1 commit 74da723

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OpenBCI_GUI/TopNav.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ class TopNav {
441441
//Load data from the latest release page from Github and the info.plist file
442442
void loadGUIVersionData() {
443443
try {
444-
Process process = java.lang.Runtime.getRuntime().exec("ping www.github.com");
444+
Process process = java.lang.Runtime.getRuntime().exec("ping -c 1 www.github.com");
445445
internetIsConnected = (process.waitFor() == 0) ? true : false;
446446
} catch (Exception e) {
447447
println("TopNav::loadGUIVersionData: Exception " + e.getMessage());

0 commit comments

Comments
 (0)