diff options
Diffstat (limited to '')
-rw-r--r-- | main.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -253,6 +253,7 @@ int main(void) { char timeout; uint64_t new_len; + char last_timeout = 0; while (1) { pthread_mutex_unlock(&send_lock); new_len = RECV(data, sizeof(data), &timeout); @@ -260,7 +261,12 @@ int main(void) { if (!timeout) break; - SEND(STRING("")); + if (last_timeout) { + break; + } else { + SEND(STRING(":1HC PING 100 100\n")); // TODO: Fix this as well + last_timeout = 1; + } } if (new_len == 0) { |