Show More
@@ -63,8 +63,9 b' class httppeer(wireproto.wirepeer):' | |||||
63 | self.requestbuilder = urlreq.request |
|
63 | self.requestbuilder = urlreq.request | |
64 |
|
64 | |||
65 | def __del__(self): |
|
65 | def __del__(self): | |
66 | if self.urlopener: |
|
66 | urlopener = getattr(self, 'urlopener', None) | |
67 | for h in self.urlopener.handlers: |
|
67 | if urlopener: | |
|
68 | for h in urlopener.handlers: | |||
68 | h.close() |
|
69 | h.close() | |
69 | getattr(h, "close_all", lambda : None)() |
|
70 | getattr(h, "close_all", lambda : None)() | |
70 |
|
71 |
General Comments 0
You need to be logged in to leave comments.
Login now