Mercurial > pidgin
comparison libpurple/protocols/msnp9/transaction.c @ 26530:b87843de7c6a
A patch from Arunan Balasubramaniam to use timeouts in seconds instead of
milliseconds in libpurple. This enables grouping of timers for greater
power efficiency.
Fixes #8875.
committer: Elliott Sales de Andrade <qulogic@pidgin.im>
author | foss@abala.me |
---|---|
date | Fri, 10 Apr 2009 06:18:08 +0000 |
parents | a07cfce78345 |
children |
comparison
equal
deleted
inserted
replaced
26529:8a0797f40695 | 26530:b87843de7c6a |
---|---|
209 { | 209 { |
210 purple_debug_error("msn", "This shouldn't be happening\n"); | 210 purple_debug_error("msn", "This shouldn't be happening\n"); |
211 purple_timeout_remove(trans->timer); | 211 purple_timeout_remove(trans->timer); |
212 } | 212 } |
213 trans->timeout_cb = cb; | 213 trans->timeout_cb = cb; |
214 trans->timer = purple_timeout_add(60000, transaction_timeout, trans); | 214 trans->timer = purple_timeout_add_seconds(60, transaction_timeout, trans); |
215 } | 215 } |
216 | 216 |
217 void | 217 void |
218 msn_transaction_set_error_cb(MsnTransaction *trans, MsnErrorCb cb) | 218 msn_transaction_set_error_cb(MsnTransaction *trans, MsnErrorCb cb) |
219 { | 219 { |