aboutsummaryrefslogtreecommitdiffstats
path: root/termcast_client/__init__.py
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-17 17:09:54 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-17 17:09:54 -0400
commit25a0ad29bfd3d989313cf3987d34d8b4115a2d97 (patch)
tree288f57522533e3c2e8e90de5677c5ab3e27c9b13 /termcast_client/__init__.py
parentd3e3af8b4e7ab7d552b08bd08f2a32b7ca74eb0a (diff)
downloadpython-termcast-client-25a0ad29bfd3d989313cf3987d34d8b4115a2d97.tar.gz
python-termcast-client-25a0ad29bfd3d989313cf3987d34d8b4115a2d97.zip
don't need to duplicate this here
Diffstat (limited to 'termcast_client/__init__.py')
-rw-r--r--termcast_client/__init__.py6
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