feat: connection protocol refactoring

This commit is contained in:
Swann
2020-06-16 00:02:02 +02:00
parent 19946794f6
commit e9029b1414
3 changed files with 10 additions and 1 deletions

View File

@ -117,6 +117,9 @@ class SessionStartOperator(bpy.types.Operator):
# Host a session
if self.host:
for scene in bpy.data.scenes:
client.add(scene)
try:
client.host(
id=settings.username,
@ -136,6 +139,9 @@ class SessionStartOperator(bpy.types.Operator):
utils.clean_scene()
# regular client, no password needed
admin_pass = None
else:
for scene in bpy.data.scenes:
client.add(scene)
try:
client.connect(
id=settings.username,