mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-30 08:49:33 +00:00
Connection rewrite: update client and server connection logic (#49)
This commit is contained in:
@@ -19,6 +19,7 @@ from emergency import *
|
||||
|
||||
import threading
|
||||
|
||||
|
||||
def wait(end, interrupter=threading.Event(), maxsleep=0.1):
|
||||
# Added features to interrupter sleep and set max sleeping interval
|
||||
|
||||
@@ -30,6 +31,7 @@ def wait(end, interrupter=threading.Event(), maxsleep=0.1):
|
||||
else:
|
||||
time.sleep(diff / 2)
|
||||
|
||||
|
||||
def confirmation_required(text="Are you sure?", label="Confirm operation?"):
|
||||
def inner(f):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user