Server: correct send start_time logic

This commit is contained in:
Arthur Golubtsov
2019-10-08 19:55:14 +03:00
parent d81f521b75
commit 19b4d73da3
2 changed files with 6 additions and 6 deletions

View File

@@ -238,10 +238,9 @@ class Server:
broadcast_client.close()
logging.info("Broadcast listener thread stopped, socked closed!")
def send_starttime(self, copter, dt=0):
timenow = self.time_now()
print('Now:', time.ctime(timenow), "+ dt =", dt)
copter.send_message("start", {"time": str(timenow + dt)})
def send_starttime(self, copter, start_time):
print('start_time: {}'.format(start_time))
copter.send_message("start", {"time": str(start_time)})
def requires_connect(f):