diff --git a/confluent_client/bin/confetty b/confluent_client/bin/confetty index 0ce3cd5e..e1126df8 100755 --- a/confluent_client/bin/confetty +++ b/confluent_client/bin/confetty @@ -948,8 +948,9 @@ def main(): except IOError: pass if powerstate is None or powertime < time.time() - 10: # Check powerstate every 10 seconds + if powerstate == None: + powerstate = True powertime = time.time() - powerstate = True check_power_state() else: currcommand = prompt()