Mercurial > hg > mood-conductor
changeset 46:c122da0b5e2f moodplay
reconnect automatically
author | nothing@tehis.net |
---|---|
date | Mon, 11 May 2015 10:49:14 +0100 |
parents | a776e64a9fd9 |
children | fe0ef9e24fee |
files | visualclient2/gradients.pyc visualclient2/visclient.py |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/visualclient2/visclient.py Mon May 11 02:33:40 2015 -0700 +++ b/visualclient2/visclient.py Mon May 11 10:49:14 2015 +0100 @@ -675,7 +675,9 @@ for blob in self.blobs : if not blob.visible : self.blobs.remove(blob) - + + if self.conn.sock == None: + self.reconnect() # get new coordinates from the server self.conn.putrequest("GET","/moodconductor/result", skip_host=True) self.conn.putheader("Host", "www.isophonics.net")