Fixed tasks.TaskPool.load_state

This commit is contained in:
Robert Miles 2018-12-02 02:43:46 +00:00
parent 494917a441
commit cdda8caa8b
1 changed files with 1 additions and 0 deletions

View File

@ -48,3 +48,4 @@ class TaskPool:
def load_state(self, index):
with open("state.{}.json".format(self.coroutines[index]["name"])) as f:
self.states[index] = json.load(f)
self.coroutines[index]["state"] = self.states[index]