Closed GoogleCodeExporter closed 9 years ago
i think just do login again.
Original comment by greatfoolbear
on 2 Feb 2011 at 2:00
But the application ends if it reaches STATE_CLOSED, doesn't it?
ps: greatfoolbear, could you answer my last comment on issue 128. thanks
Original comment by diego.cd...@gmail.com
on 2 Feb 2011 at 4:17
yes.
Original comment by greatfoolbear
on 2 Feb 2011 at 4:43
You do need to create a new XmppSocket for each login, because after reaches
STATE_CLOSED, the XmppSocket gets destroyed and reset back to NULL. I think
this is why you were seeing the crash.
The following is the right way of doing this:
<in the call_main.cc file>
pump.DoLogin(xcs, new XmppSocket(true), NULL);
pump.DoDisconnect();
pump.DoLogin(xcs, new XmppSocket(true), NULL);
Original comment by jun...@google.com
on 24 Feb 2011 at 8:34
How can i get notification when connection closed?
And I heard that problem is solved out of libjingle.
Could you give some code snippet for reconnect problem?
Thank you.
Original comment by adam1988...@gmail.com
on 20 Jan 2012 at 9:11
Original issue reported on code.google.com by
diego.cd...@gmail.com
on 1 Feb 2011 at 7:08