summaryrefslogtreecommitdiff
path: root/methods/gzip.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-09-12 11:19:35 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-09-12 11:19:35 +0200
commit504bbe47e634f07c3de7a4868f63ee2ec142b9e4 (patch)
tree9afd2f526eff3ce5bea8e0212bbea0bb62e276e7 /methods/gzip.cc
parent02b7ddb1404fa3969bceb03a5f35107884027ba6 (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.cc1
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;
}
}