Fix file closing

This commit is contained in:
Dan Williams 2007-05-08 11:07:27 -04:00
parent 6a685d38b4
commit 1994b5e6a9

View File

@ -92,7 +92,7 @@ class ChunkedGlibHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
if self._file:
self._srcid = gobject.io_add_watch(self.wfile, gobject.IO_OUT | gobject.IO_ERR, self._send_next_chunk)
else:
f.close()
self._file.close()
self._cleanup()
def _send_next_chunk(self, source, condition):