changeset 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 461a24a5a788
children 360186772aa3
files blog.js
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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();
 	}
 }