WIP: Update request time in vectors_requested to not re-request too often #16
|
@ -431,13 +431,13 @@ class ConnectionBase(threading.Thread):
|
|||
self.send_queue.put(message.GetData(pack))
|
||||
self.vectors_requested.update({
|
||||
vector: time.time() for vector in pack
|
||||
if vector not in self.vectors_requested})
|
||||
})
|
||||
self.vectors_to_get.difference_update(pack)
|
||||
else:
|
||||
self.send_queue.put(message.GetData(self.vectors_to_get))
|
||||
self.vectors_requested.update({
|
||||
vector: time.time() for vector in self.vectors_to_get
|
||||
if vector not in self.vectors_requested})
|
||||
})
|
||||
self.vectors_to_get.clear()
|
||||
if self.vectors_requested:
|
||||
self.vectors_requested = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user