Changeset

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
parents 464:dc05a8d6dbfb
children 466:1eaec52ff71a
files init.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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