aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <jaseg@jaseg.net>2014-02-17 20:35:55 +0100
committerjaseg <jaseg@jaseg.net>2014-02-17 20:35:55 +0100
commit7c105b5b194ab63266571fa7fc5b2d961c98e851 (patch)
tree4f982be5b900036b6ed24ec184f98ff2e298e5aa
parent1392b46636e9df2a4e4ecc56f12df2cb0301f6e8 (diff)
downloadmatelight-7c105b5b194ab63266571fa7fc5b2d961c98e851.tar.gz
matelight-7c105b5b194ab63266571fa7fc5b2d961c98e851.tar.bz2
matelight-7c105b5b194ab63266571fa7fc5b2d961c98e851.zip
Small queue handling bugfix
-rwxr-xr-xhost/server.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/server.py b/host/server.py
index ab3f7b5..7075404 100755
--- a/host/server.py
+++ b/host/server.py
@@ -141,7 +141,8 @@ if __name__ == '__main__':
while True:
if current_entry.entrytype == 'text':
if scroll(current_entry.text):
- textqueue.remove(current_entry)
+ if current_entry in textqueue:
+ textqueue.remove(current_entry)
if textqueue:
current_entry = textqueue[0]
else: