def _setState(self, newState, reason=None): # print "%s._setState(newState=%s, reason=%s)" % (self, newState, reason) TCPConnection._setState(self, newState=newState, reason=reason) if self._state == self.Authorizing and not self._didStartAuth: self._didStartAuth = True self.writeLine("1 auth knockKnock")