prosody

changeset 2056
ed3910860d11
parent 2039
545c0d6b6bb3
child 2086
911251f00f32
--- a/prosody	Sun Oct 25 21:21:25 2009 +0500
+++ b/prosody	Sun Oct 25 21:26:36 2009 +0500
@@ -282,7 +282,7 @@
 function loop()
 	-- Error handler for errors that make it this far
 	local function catch_uncaught_error(err)
-		if err:match("%d*: interrupted!$") then
+		if type(err) == "string" and err:match("%d*: interrupted!$") then
 			return "quitting";
 		end
 		

mercurial