chiark / gitweb /
_eclient_state is more general than _eclient_connected
[disorder] / disobedience / disobedience.c
index 3c3fae6b6346f669e4d2890694c6fd1f7e3a1209..0e7805b7730506adbc4c28101b28a30b8593ac42 100644 (file)
@@ -389,7 +389,7 @@ static void nop_completed(void attribute((unused)) *v) {
  * currently connected then no NOP is sent.
  */
 static gboolean maybe_send_nop(gpointer attribute((unused)) data) {
-  if(!nop_in_flight && disorder_eclient_connected(client)) {
+  if(!nop_in_flight && (disorder_eclient_state(client) & DISORDER_CONNECTED)) {
     nop_in_flight = 1;
     disorder_eclient_nop(client, nop_completed, 0);
   }