Diff

init.lua @ 465:6707e3a47f71

Add 'shutdown' event for a self-initiated disconnect
author Matthew Wild <mwild1@gmail.com>
date Fri, 17 Mar 2023 09:23:15 +0000
parent 464:dc05a8d6dbfb
child 490:6b2f31da9610
line wrap: on
line diff
--- a/init.lua	Thu Mar 16 16:47:59 2023 +0000
+++ b/init.lua	Fri Mar 17 09:23:15 2023 +0000
@@ -152,6 +152,7 @@
 		return;
 	end
 	local on_disconnect = self.conn.disconnect();
+	self:event("shutdown");
 	self.conn:close();
 	on_disconnect(self.conn, reason);
 end