1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-16 22:15:08 -05:00
Yaaic/application/src/org/yaaic
Steven Luo e7651315df Make reconnections actually work
At the moment, the reconnect feature is somewhat glitchy, popping up
multiple reconnect prompts even if a reconnection succeeds, and
occasionally causing crashes.  A successful reconnection results in the
conversation history being cleared, which is an annoying outcome when
connected over an unreliable network.

This patch does the following:

* Keep track of whether a reconnect dialog is active, to prevent
  multiple dialogs from opening.
* Introduce a new field to the Server object, mayReconnect, which is
  used to keep track of whether a reconnection should be attempted in
  the event of a disconnection.  It's set to "true" when we connect to a
  server, and "false" if the user asks for a disconnection.
* Prevent the clearing of active conversations and conversation history
  on disconnect, unless the user specifically asked for the disconnect.
* Keep the IRCService running even when no servers are connected, unless
  the user has disconnected from all servers herself.  This is needed
  for reliable auto-reconnects (see next patch), but has the side effect
  of keeping conversation history around even if the activity isn't open
  when a disconnect happens.
2011-06-29 20:34:52 +02:00
..
activity Make reconnections actually work 2011-06-29 20:34:52 +02:00
adapter DeckAdapter: Remove unused imports 2011-06-08 23:16:49 +02:00
command Make the conversation history size a configurable preference 2011-06-08 23:11:28 +02:00
db (Authentication) GUI for NickServ and SASL 2011-06-10 21:35:23 +02:00
exception Some more simple refactorings 2011-03-14 22:15:13 +01:00
irc Make reconnections actually work 2011-06-29 20:34:52 +02:00
layout Added 2011 to licence header 2011-02-05 13:00:12 +01:00
listener ConversationClickListener: Remove unused imports 2011-06-08 23:17:59 +02:00
model Make reconnections actually work 2011-06-29 20:34:52 +02:00
receiver Include channel topic in the displayed conversation title 2011-06-08 23:11:28 +02:00
ssl Added 2011 to licence header 2011-02-05 13:00:12 +01:00
tools Add Base64 helper class (Written by Robert Harder) - Needed for SASL implementation 2011-06-10 21:42:06 +02:00
utils Ooops, fix @author javadoc tag in classes: MircColors, Smilies 2011-04-13 00:14:40 +02:00
view Remember switched conversations across screen orientation changes 2011-06-08 23:11:28 +02:00
Yaaic.java Added 2011 to licence header 2011-02-05 13:00:12 +01:00