Changeset

151:5398623682d7

clix.raw: Close XMPP connection on 'disconnect' of stdin
author Kim Alvefur <zash@zash.se>
date Sat, 10 Apr 2021 00:25:20 +0200
parents 150:af9b9acb10d6
children 152:c729365f1091
files clix/raw.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/clix/raw.lua	Sat Apr 10 00:13:23 2021 +0200
+++ b/clix/raw.lua	Sat Apr 10 00:25:20 2021 +0200
@@ -108,7 +108,7 @@
 				end
 			end
 			stdin = require "net.server".wrapclient(stdin, "stdin", 0, {
-				onincoming = on_incoming, ondisconnect = function () end
+				onincoming = on_incoming, ondisconnect = function () conn:close() end,
 				}, "*l");
 		else
 			if not send_xml then