Spaces:
Running
Running
Space-Face
commited on
Commit
•
748b6e4
1
Parent(s):
e24d7b0
Update SpaceFace.py
Browse files- SpaceFace.py +2 -0
SpaceFace.py
CHANGED
@@ -47,6 +47,8 @@ class Responder:
|
|
47 |
return value
|
48 |
def close(self):
|
49 |
if self.can_stream or not self.can_respond:
|
|
|
|
|
50 |
conn.set_var("channel "+str(self.channel), "0")
|
51 |
else:
|
52 |
while str(scratch3.get_var(self.projectid, "channel "+str(self.channel))) !="0":
|
|
|
47 |
return value
|
48 |
def close(self):
|
49 |
if self.can_stream or not self.can_respond:
|
50 |
+
while time.time() - self.cooldown < 0.5:
|
51 |
+
time.sleep(0.5 - (time.time() - self.cooldown))
|
52 |
conn.set_var("channel "+str(self.channel), "0")
|
53 |
else:
|
54 |
while str(scratch3.get_var(self.projectid, "channel "+str(self.channel))) !="0":
|