[Python-modules-commits] [pychromecast] 11/15: Added force_recon check before writing to socket.

Ruben Undheim rubund-guest at moszumanska.debian.org
Sat Sep 12 12:30:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

rubund-guest pushed a commit to branch master
in repository pychromecast.

commit c8be12efea4f2be3170fe76bf7c92f1d134b7e2c
Author: Ryan Kraus <rmkraus at gmail.com>
Date:   Sat Aug 29 15:54:07 2015 -0400

    Added force_recon check before writing to socket.
---
 pychromecast/socket_client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pychromecast/socket_client.py b/pychromecast/socket_client.py
index 1d3b315..fa64140 100644
--- a/pychromecast/socket_client.py
+++ b/pychromecast/socket_client.py
@@ -363,7 +363,7 @@ class SocketClient(threading.Thread):
 
         if not force and self.stop.is_set():
             raise PyChromecastStopped("Socket client's thread is stopped.")
-        if not self.connecting:
+        if not self.connecting and not self._force_recon:
             try:
                 self.socket.sendall(be_size + msg.SerializeToString())
             except socket.error as err:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pychromecast.git



More information about the Python-modules-commits mailing list