Use .appendleft(x) for deque instead .insert(0, x) (fix #268)

This commit is contained in:
Lonami Exo 2017-09-28 09:30:47 +02:00
parent c667a00281
commit 1518be0b95

View File

@ -57,7 +57,7 @@ class UpdateState:
with self._updates_lock:
# Insert at the beginning so the very next poll causes an error
# TODO Should this reset the pts and such?
self._updates.insert(0, error)
self._updates.appendleft(error)
self._updates_available.set()
def check_error(self):