From 25a0ad29bfd3d989313cf3987d34d8b4115a2d97 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 17 Oct 2014 17:09:54 -0400 Subject: don't need to duplicate this here --- termcast_client/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'termcast_client/__init__.py') 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 -- cgit v1.2.3-54-g00ecf