# 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 -r 461a24a5a788 -r 42d3f454d4b4 blog.js --- a/blog.js Wed Nov 02 09:48:28 2011 -0700 +++ b/blog.js Wed Nov 02 09:53:37 2011 -0700 @@ -175,6 +175,7 @@ var type = stanza.getAttribute('type'); if (type !== 'result') { messages.innerHTML = 'Error, impossible to retrieve messages.'; + re = false; conn.disconnect(); } }