mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-11-07 00:35:39 +00:00
Introduce and use fe_timeout_add_seconds
This should allow the operating system to be a bit more lax about timeouts, allowing more efficient power management.
This commit is contained in:
1 parent
25e197a6c8
commit
bcbe42dd7a
8 files changed
+21
-8
No files matched your search
+1
-1
@@ -249,7 +249,7 @@ static void
|
||||
close_socket (int sok)
|
||||
{
|
||||
/* close the socket in 5 seconds so the QUIT message is not lost */
|
||||
fe_timeout_add (5000, close_socket_cb, GINT_TO_POINTER (sok));
|
||||
fe_timeout_add_seconds (5, close_socket_cb, GINT_TO_POINTER (sok));
|
||||
}
|
||||
|
||||
/* handle 1 line of text received from the server */
|
||||
|
||||
Reference in new issue
Block a user