turns out I wasnt resetting self.mainTaskComplete (boolean) between tasks. now you can run multiple tasks
@@ -95,6 +95,7 @@ class GatewayServer():
await self.addTask(self.all_tasks[index])
while self.mainTaskCompleted == False:
await asyncio.sleep(1)
+ self.mainTaskCompleted = True #reset mainTaskCompleted
self.mainTaskComplete[index] = "complete"
else:
while self.session_data is None:
