1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-12 03:55:01 -05:00
Commit Graph

2 Commits

Author SHA1 Message Date
Steven Luo
bce2523f98 Fix auto-reconnect
The current auto-reconnection implementation will only try reconnecting
once, immediately after the server is disconnected.  This will of course
almost always fail if the network is down or otherwise unavailable, so
as it stands, enabling auto-reconnect isn't particularly useful.

This patch implements multiple retries for auto-reconnect, with the
frequency of retries controlled by a preference.  The Android alarm
infrastructure is used to schedule reconnection attempts; if the phone
misses a scheduled attempt while it's asleep, the reconnection will be
attempted the next time the phone wakes up.
2011-06-29 20:34:55 +02:00
Sebastian Kaspari
1250c10d9c Merged application and test project into one repository 2010-11-07 08:35:45 +01:00