redsolution / xabber-android

Open-source XMPP client for Android
http://xabber.com
Other
1.82k stars 815 forks source link

Agressive reconnect when the user connects from a different place with the same resource #157

Open LavirtheWhiolet opened 11 years ago

LavirtheWhiolet commented 11 years ago

I have set "Resource" to "Primary" both in Xabber (on my Android phone) and in Pidgin (on my desktop computer). When I connect with Xabber, Pidgin automatically disconnects. But when I try to connect witn Pidgin I get "you have connected from another place" – that's Xabber disconnects and immediately reconnects, "shoving" other clients away from the line.

Xabber should go offline when it detects that another client has connected with the same resource.

a-iv commented 11 years ago

Process incoming error:

<error xmlns='http://etherx.jabber.org/streams'>
    <conflict xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
</error>