node_manager_fkie: avoid multiple question in the queue
@@ -81,6 +81,9 @@ class MessageQueue(object):
else:
self._queue[questionid].append(('', data))
else:
+ for txt, dt in self._queue[questionid]:
+ if txt == text and dt == data:
+ return
self._queue[questionid].append((text, data))
def get(self):
@@ -164,6 +167,7 @@ class MessageFrame(QFrame):
return
except Exception:
pass
+ if self.questionid != questionid or self.text != text or data != self.data:
self._queue.add(questionid, text, data)
if self.questionid == self.TYPE_INVALID:
self._new_request = self._read_next_item()
