aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorlawl <github@dumbinter.net>2020-08-03 15:00:43 +0200
committerlawl <github@dumbinter.net>2020-08-03 15:00:43 +0200
commit371b3e33b523f45ec51776e7e7a33f824084dca5 (patch)
tree9d7573b66f43dd687e8064f5976a22e62dff21c4 /main.go
parent4243d5036d1e7d339ca8ee3ff8a0be88a9f0d92c (diff)
downloadnoisetorch-371b3e33b523f45ec51776e7e7a33f824084dca5.tar.gz
noisetorch-371b3e33b523f45ec51776e7e7a33f824084dca5.zip
Fix bugs with pa reconnection
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index 6bd2ca0..515416e 100644
--- a/main.go
+++ b/main.go
@@ -101,6 +101,7 @@ func removeLib(file string) {
func paConnectionWatchdog(ui *uistate) {
for {
if ui.paClient.Connected() {
+ time.Sleep(500 * time.Millisecond)
continue
}
@@ -139,6 +140,8 @@ func paConnectionWatchdog(ui *uistate) {
ui.inputList = inputs
+ resetUI(ui)
+
time.Sleep(500 * time.Millisecond)
}
}