|
@@ -115,7 +115,7 @@ class TagServer(threading.Thread):
|
|
|
return r
|
|
|
|
|
|
def stop(self):
|
|
|
- self.brodcast("STOP")
|
|
|
+ self.brodcast("QUIT")
|
|
|
self.mutex.acquire()
|
|
|
clients_threads = self.clients_threads
|
|
|
self.mutex.release()
|
|
@@ -196,6 +196,8 @@ class TagClient(threading.Thread):
|
|
|
self.positions = []
|
|
|
self.board = None
|
|
|
|
|
|
+ self.quit = False
|
|
|
+
|
|
|
self.mutex = threading.Lock()
|
|
|
|
|
|
def info (self, idd, xsize, ysize, xtag, ytag):
|
|
@@ -261,8 +263,10 @@ class TagClient(threading.Thread):
|
|
|
idd, interval = d[1].split(",")
|
|
|
self.tag = (int(idd), float(interval)+time.time())
|
|
|
elif d[0] == "QUIT":
|
|
|
+ print(d)
|
|
|
self.stop()
|
|
|
self.sock.close()
|
|
|
+ self.quit = True
|
|
|
|
|
|
def getStatus(self):
|
|
|
return self.runing
|