Reset the DNS answers after a connection is made succesfully

This commit is contained in:
mathieui 2015-09-25 19:34:04 +02:00
parent c17fc3a869
commit 1100ff1feb
No known key found for this signature in database
GPG Key ID: C59F84CEEFD616E3

View File

@ -348,6 +348,7 @@ class XMLStream(asyncio.BaseProtocol):
self.socket = self.transport.get_extra_info("socket")
self.init_parser()
self.send_raw(self.stream_header)
self.dns_answers = None
def data_received(self, data):
"""Called when incoming data is received on the socket.