summary refs log tree commit diff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.h b/config.h
index 1f18edd..394ac70 100644
--- a/config.h
+++ b/config.h
@@ -36,4 +36,4 @@
 #define PEER_PINGTIMEOUT 120
 #define PEER_PONGTIMEOUT 20
 
-#define POLL_TIMEOUT PEER_PINGTIMEOUT
+#define POLL_TIMEOUT (PEER_PINGTIMEOUT < PEER_PONGTIMEOUT ? PEER_PINGTIMEOUT : PEER_PONGTIMEOUT)