clix.raw: Increase priority of print hook to avoid conflict with iq handler

Sat, 10 Apr 2021 01:00:00 +0200

author
Kim Alvefur <zash@zash.se>
date
Sat, 10 Apr 2021 01:00:00 +0200
changeset 156
3369ae4ff520
parent 155
65dc066a256a
child 157
aa0f11fb166c

clix.raw: Increase priority of print hook to avoid conflict with iq handler

Fixes that sometimes it would quit without printing the iq response.

clix/raw.lua file | annotate | diff | comparison | revisions
--- a/clix/raw.lua	Sat Apr 10 00:49:46 2021 +0200
+++ b/clix/raw.lua	Sat Apr 10 01:00:00 2021 +0200
@@ -26,7 +26,7 @@
 			end
 			return print(stanza);
 		end
-		conn:hook("stanza", stprint)
+		conn:hook("stanza", stprint, 1)
 		if opts.interactive then
 			local stdin = {
 				getfd = function () return 0; end;

mercurial