# HG changeset patch # User Emmanuel Gil Peyrot # Date 1320252817 25200 # Node ID 42d3f454d4b4cf7193c5e1a78f8423ef54312385 # Parent 461a24a5a788247ac361de44fe281852ad4a26f8 Don’t reconnect when there is nothing to get. diff --git a/blog.js b/blog.js --- 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(); } }