diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-17 17:09:54 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-17 17:09:54 -0400 |
commit | 25a0ad29bfd3d989313cf3987d34d8b4115a2d97 (patch) | |
tree | 288f57522533e3c2e8e90de5677c5ab3e27c9b13 | |
parent | d3e3af8b4e7ab7d552b08bd08f2a32b7ca74eb0a (diff) | |
download | python-termcast-client-25a0ad29bfd3d989313cf3987d34d8b4115a2d97.tar.gz python-termcast-client-25a0ad29bfd3d989313cf3987d34d8b4115a2d97.zip |
don't need to duplicate this here
-rw-r--r-- | termcast_client/__init__.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/termcast_client/__init__.py b/termcast_client/__init__.py index b3c2b4b..fa98ab0 100644 --- a/termcast_client/__init__.py +++ b/termcast_client/__init__.py @@ -44,11 +44,7 @@ class Client(object): print("Disconnected from server, reconnecting...") time.sleep(5) try: - self.sock = socket.socket() - self.sock.connect((self.host, self.port)) - if self.tls: - self._starttls() - self.sock.send(self._build_connection_string()) + self._new_socket() return except: pass |