diff --git a/mcstatus/protocol/connection.py b/mcstatus/protocol/connection.py index 9c65c17..efc748a 100644 --- a/mcstatus/protocol/connection.py +++ b/mcstatus/protocol/connection.py @@ -150,7 +150,10 @@ def write(self, data): self.socket.send(data) def __del__(self): - self.socket.close() + try: + self.socket.close() + except: + pass class UDPSocketConnection(Connection): @@ -181,4 +184,7 @@ def write(self, data): self.socket.sendto(data, self.addr) def __del__(self): - self.socket.close() \ No newline at end of file + try: + self.socket.close() + except: + pass diff --git a/setup.py b/setup.py index e994f9f..b37fde9 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ setup( name='mcstatus', - version='2.2', + version='2.2.1', author='Nathan Adams', author_email='dinnerbone@dinnerbone.com', url='https://pypi.python.org/pypi/mcstatus',