[Xmpp4js-commit] SF.net SVN: xmpp4js:[759] trunk/src/main/javascript/transport/Base.js
Status: Beta
Brought to you by:
h-iverson
From: <h-i...@us...> - 2008-07-28 14:52:09
|
Revision: 759 http://xmpp4js.svn.sourceforge.net/xmpp4js/?rev=759&view=rev Author: h-iverson Date: 2008-07-28 14:52:17 +0000 (Mon, 28 Jul 2008) Log Message: ----------- added hack so that error condition can be terminal for openfire Modified Paths: -------------- trunk/src/main/javascript/transport/Base.js Modified: trunk/src/main/javascript/transport/Base.js =================================================================== --- trunk/src/main/javascript/transport/Base.js 2008-07-28 05:56:18 UTC (rev 758) +++ trunk/src/main/javascript/transport/Base.js 2008-07-28 14:52:17 UTC (rev 759) @@ -575,7 +575,8 @@ errorNode = errorNode.getLength() > 0 ? errorNode.item(0) : null; // HACK these errors should be given with terminate / remote-stream-error but in Openfire they are not. - if( errorNode == null && packetNode.getAttribute("type").toString() == "terminate" ) { + if( errorNode == null && (packetNode.getAttribute("type").toString() == "terminate" || + packetNode.getAttribute("type").toString() == "terminal")) { // HACK openfire uses terminal? var condition = packetNode.getAttribute( "condition" ).toString(); var title = Xmpp4Js.PacketFilter.TerminalErrorPacketFilter.conditions[ condition ].title; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |