mirror of
https://github.com/Tiiffi/mcrcon.git
synced 2026-06-04 18:12:40 -04:00
Change timeout from 5s to 2s
This commit is contained in:
@@ -684,6 +684,7 @@ int rcon_command(int sock, char *command)
|
|||||||
// Set 5 second timeout
|
// Set 5 second timeout
|
||||||
struct timeval timeout = {0};
|
struct timeval timeout = {0};
|
||||||
timeout.tv_sec = 5;
|
timeout.tv_sec = 5;
|
||||||
|
timeout.tv_sec = 2;
|
||||||
timeout.tv_usec = 0;
|
timeout.tv_usec = 0;
|
||||||
|
|
||||||
uint8_t last_character = '\0';
|
uint8_t last_character = '\0';
|
||||||
|
|||||||
Reference in New Issue
Block a user