diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-11-14 17:27:16 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-11-17 14:15:10 -0300 |
commit | 7ec871d37de442fd3731a0eef319851c61fb04cc (patch) | |
tree | 069d1732958ede55f6e1821f653f1c6039e22c9c /network | |
parent | 204180c7dc2e20b9b701275a3fefb52707720f54 (diff) |
Make use of g_timeout_add_seconds whenever possible.
Diffstat (limited to 'network')
-rw-r--r-- | network/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/network/server.c b/network/server.c index c37fd883..d4ee5f3f 100644 --- a/network/server.c +++ b/network/server.c @@ -55,7 +55,7 @@ #define NETWORK_PEER_INTERFACE "org.bluez.NetworkPeer" #define NETWORK_HUB_INTERFACE "org.bluez.NetworkHub" #define NETWORK_ROUTER_INTERFACE "org.bluez.NetworkRouter" -#define SETUP_TIMEOUT 1000 +#define SETUP_TIMEOUT 1 /* Pending Authorization */ struct setup_session { @@ -555,7 +555,7 @@ static void connect_event(GIOChannel *chan, int err, const bdaddr_t *src, * the time expires. */ na->to = g_malloc0(sizeof(struct timeout)); - na->to->id = g_timeout_add(SETUP_TIMEOUT, timeout_cb, na->to); + na->to->id = g_timeout_add_seconds(SETUP_TIMEOUT, timeout_cb, na->to); na->to->watch = g_io_add_watch_full(chan, G_PRIORITY_DEFAULT, G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_NVAL, bnep_setup, na, setup_destroy); |