Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-08 15:07:27 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-05-08 15:07:27 (GMT)
commit1994b5e6a959520274ae5e61cc106211d42a7fa0 (patch)
treed55d5126466e76d8884eb15cc3d99612d5ab623e /sugar
parent6a685d38b4712a7efc031787780df4df171f1a46 (diff)
Fix file closing
Diffstat (limited to 'sugar')
-rw-r--r--sugar/p2p/network.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/p2p/network.py b/sugar/p2p/network.py
index 504638a..2270e16 100644
--- a/sugar/p2p/network.py
+++ b/sugar/p2p/network.py
@@ -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):