diff blog.js @ 9:42d3f454d4b4

Don’t reconnect when there is nothing to get.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 02 Nov 2011 09:53:37 -0700
parents 7ab6b48122af
children 161d4ea1c3f8
line wrap: on
line diff
--- a/blog.js
+++ b/blog.js
@@ -175,6 +175,7 @@ var onSubscribed = function(stanza) {
 	var type = stanza.getAttribute('type');
 	if (type !== 'result') {
 		messages.innerHTML = 'Error, impossible to retrieve messages.';
+		re = false;
 		conn.disconnect();
 	}
 }