diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-12 11:19:35 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-12 11:19:35 +0200 |
commit | 504bbe47e634f07c3de7a4868f63ee2ec142b9e4 (patch) | |
tree | 9afd2f526eff3ce5bea8e0212bbea0bb62e276e7 /methods/gzip.cc | |
parent | 02b7ddb1404fa3969bceb03a5f35107884027ba6 (diff) |
* methods/gzip.cc:
- if it can't write (because var is full), close the FromGz stream
to not hang in ExecWait() later
Diffstat (limited to 'methods/gzip.cc')
-rw-r--r-- | methods/gzip.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/methods/gzip.cc b/methods/gzip.cc index 809afc0fc..55ff33270 100644 --- a/methods/gzip.cc +++ b/methods/gzip.cc @@ -111,6 +111,7 @@ bool GzipMethod::Fetch(FetchItem *Itm) if (To.Write(Buffer,Count) == false) { Failed = true; + FromGz.Close(); break; } } |