[Xmpp4js-commit] SF.net SVN: xmpp4js:[751] trunk/src/main/javascript/XmppConnection.js
Status: Beta
Brought to you by:
h-iverson
|
From: <h-i...@us...> - 2008-07-26 20:35:46
|
Revision: 751
http://xmpp4js.svn.sourceforge.net/xmpp4js/?rev=751&view=rev
Author: h-iverson
Date: 2008-07-26 20:35:54 +0000 (Sat, 26 Jul 2008)
Log Message:
-----------
changed onTerminalError to shutdown the connection before firing the error event to give the listener an opportunity to reconnect
Modified Paths:
--------------
trunk/src/main/javascript/XmppConnection.js
Modified: trunk/src/main/javascript/XmppConnection.js
===================================================================
--- trunk/src/main/javascript/XmppConnection.js 2008-07-25 21:01:04 UTC (rev 750)
+++ trunk/src/main/javascript/XmppConnection.js 2008-07-26 20:35:54 UTC (rev 751)
@@ -56,6 +56,8 @@
*/
error: true,
+ beforepause: true,
+
pause: true,
resume: true
@@ -239,12 +241,13 @@
this.packetListenerManager.run( packetNode );
},
/**
- * Sets connected to false and removes the onRecv listener.
+ * Shutdown before firing error event to give the listener an opportunity
+ * to reconnect.
* @private
*/
onTerminalError: function(title, message, packetNode) {
+ this.shutdown();
this.fireEvent( "error", true, packetNode, title, message );
- this.shutdown();
},
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|