mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-24 15:31:56 -05:00
Bugfix: Do not reconnect if user disconnects
This commit is contained in:
parent
a29c136240
commit
da4a4021ee
@ -282,8 +282,8 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
{
|
||||
switch (item.getItemId()) {
|
||||
case R.id.disconnect:
|
||||
binder.getService().getConnection(serverId).quitServer();
|
||||
server.setStatus(Status.DISCONNECTED);
|
||||
binder.getService().getConnection(serverId).quitServer();
|
||||
server.clearConversations();
|
||||
setResult(RESULT_OK);
|
||||
finish();
|
||||
|
@ -178,6 +178,7 @@ public class ServersActivity extends ListActivity implements ServiceConnection,
|
||||
break;
|
||||
case 1: // Disconnect
|
||||
server.clearConversations();
|
||||
server.setStatus(Status.DISCONNECTED);
|
||||
binder.getService().getConnection(server.getId()).quitServer();
|
||||
break;
|
||||
case 2: // Edit
|
||||
|
@ -989,7 +989,7 @@ public class IRCConnection extends PircBot
|
||||
@Override
|
||||
public void onDisconnect()
|
||||
{
|
||||
if (service.getSettings().isReconnectEnabled()) {
|
||||
if (service.getSettings().isReconnectEnabled() && server.getStatus() != Status.DISCONNECTED) {
|
||||
setAutojoinChannels(server.getCurrentChannelNames());
|
||||
|
||||
server.clearConversations();
|
||||
|
Loading…
x
Reference in New Issue
Block a user