diff --git a/TWS/twsproxy/__init__.py b/TWS/twsproxy/__init__.py index 0cc145742ba65d5bf53e6845f5a1b232047ec378..da43556f07c09758505dd229048c3b9d204eec69 100644 --- a/TWS/twsproxy/__init__.py +++ b/TWS/twsproxy/__init__.py @@ -50,6 +50,8 @@ class TWSProxy(threading.Thread): else: logger.debug('inittws, select returned with no more info, verifying headers for the last time') port = self.verifyauth(header[0:bytessofar]) + logger.debug(header[0:bytessofar]) + keepreading = False if initcount > failthresh: logger.debug('inittws, checked headers enough times, got {} bytes with no success'.format(bytessofar))