diff options
Diffstat (limited to 'rhnop-server/qlistener.lua')
-rw-r--r-- | rhnop-server/qlistener.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rhnop-server/qlistener.lua b/rhnop-server/qlistener.lua index 0371a02..dcea7bb 100644 --- a/rhnop-server/qlistener.lua +++ b/rhnop-server/qlistener.lua @@ -49,8 +49,7 @@ function handle_message(msg) if not timestamp or not nowcart or not nowlen or not nextcart or not nextlen then io.stderr:write("ignoring malformed message\n") else - -- TODO better sanity checks: is now info new or just next? - if last_cart ~= nowcart and nowcart ~= conf.dummy_now_cart then + if last_cart ~= nowcart and nowcart >= conf.music_carts_lo and nowcart <= conf.music_carts_hi and nowlen > 0 then last_cart = nowcart handle_now(timestamp, nowcart, nowlen) end |