# HG changeset patch # User Kim Alvefur # Date 1360537249 -3600 # Node ID a074eaacefe709dbca3c63c249d11db37e5a4751 # Parent 730fcde562cebcf056848e46e6a201c6530fb735 clix.lua: Don't break if the disconnected event has no event data, and don't warn if the stream was closed cleanly diff -r 730fcde562ce -r a074eaacefe7 clix.lua --- a/clix.lua Sun Feb 10 23:59:34 2013 +0100 +++ b/clix.lua Mon Feb 11 00:00:49 2013 +0100 @@ -86,7 +86,7 @@ conn:close(); end); conn:hook("disconnected", function (info) - if info.reason then + if info and info.reason and info.reason ~= "stream closed" then conn:warn("Disconnecting: %s", tostring(info.reason)); end verse.quit();