diff --git a/pupy/network/lib/servers.py b/pupy/network/lib/servers.py index 4afb62e1..1c69e50f 100644 --- a/pupy/network/lib/servers.py +++ b/pupy/network/lib/servers.py @@ -260,4 +260,5 @@ class PupyUDPServer(object): def close(self): self.active=False - self.sock.close() + if self.sock: + self.sock.close()