soc.2009.transport: 3c8c2a37: reconnect also for not-well-formed xml

hanzz at soc.pidgin.im hanzz at soc.pidgin.im
Fri Jun 19 11:25:28 EDT 2009


-----------------------------------------------------------------
Revision: 3c8c2a379448c64518edb1092c022a8cc79f4b0c
Ancestor: 0e6d1147767b69b373d1c90821a10110b0aab95c
Author: hanzz at soc.pidgin.im
Date: 2009-06-19T15:22:59
Branch: im.pidgin.soc.2009.transport
URL: http://d.pidgin.im/viewmtn/revision/info/3c8c2a379448c64518edb1092c022a8cc79f4b0c

Modified files:
        main.cpp

ChangeLog: 

reconnect also for not-well-formed xml

-------------- next part --------------
============================================================
--- main.cpp	b3af74a24b9c7f2802d4eaf8b0a5d5885756aa3d
+++ main.cpp	4821eb5878eaf517c5e4c7b7089722cd816342a0
@@ -1224,7 +1224,7 @@ void GlooxMessageHandler::onDisconnect(C
 	Log().Get("gloox") << "!!!!!!!!!! DISCONNECTED FROM JABBER SERVER !!!!!!!!!!!";
 	Log().Get("gloox") << j->streamError();
 	Log().Get("gloox") << j->streamErrorText("default text");
-	if (j->streamError()==0){
+	if (j->streamError()==0 || j->streamError()==24){
         	j->connect(false);
 		int mysock = dynamic_cast<ConnectionTCPClient*>( j->connectionImpl() )->socket();
 		connectIO = g_io_channel_unix_new(mysock);


More information about the Commits mailing list