diff options
author | jaseg <jaseg@jaseg.net> | 2014-02-17 20:35:55 +0100 |
---|---|---|
committer | jaseg <jaseg@jaseg.net> | 2014-02-17 20:35:55 +0100 |
commit | 7c105b5b194ab63266571fa7fc5b2d961c98e851 (patch) | |
tree | 4f982be5b900036b6ed24ec184f98ff2e298e5aa /host | |
parent | 1392b46636e9df2a4e4ecc56f12df2cb0301f6e8 (diff) | |
download | matelight-7c105b5b194ab63266571fa7fc5b2d961c98e851.tar.gz matelight-7c105b5b194ab63266571fa7fc5b2d961c98e851.tar.bz2 matelight-7c105b5b194ab63266571fa7fc5b2d961c98e851.zip |
Small queue handling bugfix
Diffstat (limited to 'host')
-rwxr-xr-x | host/server.py | 3 |
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: |