From f5fd8d1faece80e1bc079f7343661a5f73cd879d Mon Sep 17 00:00:00 2001 From: Michael Altfield Date: Sat, 27 Jul 2024 14:26:34 -0500 Subject: [PATCH] keeping child process timeout 1 second --- src/packages/buskill/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/packages/buskill/__init__.py b/src/packages/buskill/__init__.py index 71c3e566..a404b8b1 100644 --- a/src/packages/buskill/__init__.py +++ b/src/packages/buskill/__init__.py @@ -1038,9 +1038,8 @@ def toggle(self): # how much time has passed since we've been looping? current = time.time() - #if (current - start) > 0.1: if (current - start) > 1: - # we've been waiting for more than 0.1 seconds; exit with error + # we've been waiting for more than 1 second; exit with error msg = "ERROR: timeout waiting for usb handler child process" print( msg ); logger.error( msg )