git » sdk » commit ad908f0

Should ping when sending queries as well

author Stephen Paul Weber
2026-10-07 13:37:19 UTC
committer Stephen Paul Weber
2026-10-07 13:37:19 UTC
parent 9adae58e956f8a3422794a2c6f819c0525743682

Should ping when sending queries as well

We also have a bunch of code calling stream.sendIq directly, which this
does not cover.

borogove/Client.hx +1 -0

diff --git a/borogove/Client.hx b/borogove/Client.hx
index 6caec6a..b69fb65 100644
--- a/borogove/Client.hx
+++ b/borogove/Client.hx
@@ -2084,6 +2084,7 @@ class Client extends EventEmitter {
 
 	@:allow(borogove)
 	private function sendQuery(query:GenericQuery) {
+		channelPinger.pingDueInWindow();
 		this.stream.sendIq(query.getQueryStanza(), query.handleResponse);
 	}