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