From cbfc2a7bf6251de9d6c37db98c6fe94b9289ccf9 Mon Sep 17 00:00:00 2001 From: Swann Date: Tue, 27 Aug 2019 15:58:10 +0200 Subject: [PATCH] fix: is_admin reset feat: submodule bump --- libs/replication | 2 +- operators.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/replication b/libs/replication index c90f4ce..3e8d5fd 160000 --- a/libs/replication +++ b/libs/replication @@ -1 +1 @@ -Subproject commit c90f4ce33d706005ac81cdd2d2f710167104df4d +Subproject commit 3e8d5fda854c573261085c8f5ff706fed21ac34f diff --git a/operators.py b/operators.py index 5b82a0e..6792b69 100644 --- a/operators.py +++ b/operators.py @@ -106,6 +106,7 @@ class SessionStartOperator(bpy.types.Operator): ) if client.state == 0: + settings.is_admin = False self.report( {'ERROR'}, "A session is already hosted on this address") @@ -154,6 +155,7 @@ class SessionStopOperator(bpy.types.Operator): def execute(self, context): global client, delayables settings = context.window_manager.session + settings.is_admin = False assert(client) client.remove(settings.user_uuid)