Diff

clix.lua @ 105:a074eaacefe7

clix.lua: Don't break if the disconnected event has no event data, and don't warn if the stream was closed cleanly
author Kim Alvefur <zash@zash.se>
date Mon, 11 Feb 2013 00:00:49 +0100
parent 104:730fcde562ce
child 122:1dfd28db10bd
line wrap: on
line diff
--- 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();