// wait for a reply
data = None
while data is None:
data = conn.recv(2048)
// send the next vehicle
conn.send(str(entered_vehicles[0]))
del entered_vehicles[0]
After Change
else:
output = ":".join([str(e) for e in entered_vehicles])
send_message(conn, in_format="str", values=(output,))
entered_vehicles = []
elif data == ac.VEH_GET_EXITED_IDS:
send_message(conn, in_format="i", values=(0,))