diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-05-08 21:51:38 +0200 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2016-06-29 15:42:11 -0400 |
commit | bcbe42dd7a4b7bca0e699c3e52f2c9bf7b37deba (patch) | |
tree | 0e93a7ba613dcdbfd0c27961578afa624a4ae13a /src/common/server.c | |
parent | 25e197a6c84463e967065c64b5760b79884787cc (diff) |
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.
Diffstat (limited to 'src/common/server.c')
-rw-r--r-- | src/common/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/server.c b/src/common/server.c index 665c913c..83e3ba9a 100644 --- a/src/common/server.c +++ b/src/common/server.c @@ -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 */ |