diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2012-12-26 12:06:05 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2012-12-26 12:06:05 -0300 |
commit | 9a1c4ad1bab7d61958081b6e066c80ec0a4b798b (patch) | |
tree | ec63f3db9ec9dc1a547838f22aeead5cb6b6d36f /dpip/dpip.c | |
parent | b3fe28cd46ffe481e455c23795a311112de57b1a (diff) |
Fixed a bug in dpip when dillo aborts a running dpi connection
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2012-December/009668.html
Diffstat (limited to 'dpip/dpip.c')
-rw-r--r-- | dpip/dpip.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dpip/dpip.c b/dpip/dpip.c index 170e4a88..dd97ec4a 100644 --- a/dpip/dpip.c +++ b/dpip/dpip.c @@ -451,8 +451,9 @@ char *a_Dpip_dsh_read_token(Dsh *dsh, int blocking) } } else if (dsh->mode & DPIP_RAW) { - /* Wait for data when the buffer is empty and there's no EOF yet */ - while (dsh->rdbuf->len == 0 && dsh->status != DPIP_EOF) + /* Wait for data when the buffer is empty and there's no ERR/EOF */ + while (dsh->rdbuf->len == 0 && + dsh->status != DPIP_ERROR && dsh->status != DPIP_EOF) Dpip_dsh_read(dsh, 1); } } |