Commit b769ea29 authored by Aljaž Srebrnič's avatar Aljaž Srebrnič

Recreate Timer object before starting

Since this can be reused, you can't restart Timers, so create a new one.
parent 2d2ac5f0
......@@ -51,6 +51,7 @@ def main():
pg.mixer.Channel(1).play(stageOne)
elif messagedata == b"stage_2_separation":
pg.mixer.Channel(2).play(stageTwo)
t = Timer(30.0, endMission)
t.start()
else:
print("Unhandled message")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment