mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-26 23:19:33 +00:00
drone: Fix server_connection whoami value
This commit is contained in:
@@ -145,6 +145,8 @@ class CopterClient(client_core.Client):
|
||||
except rospkg.common.ResourceNotFound:
|
||||
path = 'error'
|
||||
self.config.set('', 'clover_dir', path, write=True)
|
||||
if path.count("/pi/"):
|
||||
self.server_connection.whoami = "pi"
|
||||
|
||||
def on_broadcast_bind(self):
|
||||
repair_chrony(self.config.server_host)
|
||||
|
||||
@@ -28,7 +28,7 @@ class Client(object):
|
||||
self.selector = selectors.DefaultSelector()
|
||||
self.client_socket = None
|
||||
|
||||
self.server_connection = messaging.ConnectionManager("pi")
|
||||
self.server_connection = messaging.ConnectionManager()
|
||||
|
||||
self.connected = False
|
||||
self.client_id = None
|
||||
|
||||
Reference in New Issue
Block a user