From 5a6d0cd052553caf05b73827a8f7fa3d2b4c5772 Mon Sep 17 00:00:00 2001 From: Dominic Zimmer Date: Fri, 17 Apr 2020 01:00:01 +0200 Subject: [PATCH] Await it --- backups/2020-04-17-005940_tehmodel.json | 1 + backups/2020-04-17-005956_tehmodel.json | 1 + model.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 backups/2020-04-17-005940_tehmodel.json create mode 100644 backups/2020-04-17-005956_tehmodel.json diff --git a/backups/2020-04-17-005940_tehmodel.json b/backups/2020-04-17-005940_tehmodel.json new file mode 100644 index 0000000..3960af8 --- /dev/null +++ b/backups/2020-04-17-005940_tehmodel.json @@ -0,0 +1 @@ +{"clients": {"hrp7wawucurqzzap": {"id": "hrp7wawucurqzzap"}}, "sessions": {}} \ No newline at end of file diff --git a/backups/2020-04-17-005956_tehmodel.json b/backups/2020-04-17-005956_tehmodel.json new file mode 100644 index 0000000..3960af8 --- /dev/null +++ b/backups/2020-04-17-005956_tehmodel.json @@ -0,0 +1 @@ +{"clients": {"hrp7wawucurqzzap": {"id": "hrp7wawucurqzzap"}}, "sessions": {}} \ No newline at end of file diff --git a/model.py b/model.py index c2eb620..c7fe8e2 100644 --- a/model.py +++ b/model.py @@ -43,7 +43,7 @@ class Model: # TODO: compute state, send to client data = {"message": "nudes"} for socket in self.sockets[clientid]: - socket.send_json(data) + await socket.send_json(data) def save(self): with open(self.filename, "w") as f: