summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ratox.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ratox.c b/ratox.c
index b0d7dc7..f9ff2da 100644
--- a/ratox.c
+++ b/ratox.c
@@ -28,6 +28,10 @@
#define DATAFILE ".ratox.data"
+enum {
+ CONNECTDELAY = 5, /* in seconds */
+};
+
const char *reqerr[] = {
[-TOX_FAERR_TOOLONG] = "Message is too long",
[-TOX_FAERR_NOMESSAGE] = "Please add a message to your request",
@@ -1409,7 +1413,7 @@ loop(void)
connected = 0;
}
t1 = time(NULL);
- if (t1 > t0 + 5) {
+ if (t1 > t0 + CONNECTDELAY) {
t0 = time(NULL);
printout("DHT > Connecting\n");
toxconnect();