mirror of
https://github.com/Tiiffi/mcrcon.git
synced 2025-12-16 18:22:53 -05:00
Change timeout from 5s to 2s
This commit is contained in:
1
mcrcon.c
1
mcrcon.c
@@ -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