about summary refs log tree commit homepage
path: root/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'http.c')
-rw-r--r--http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/http.c b/http.c
index e440d2b..3ba33bb 100644
--- a/http.c
+++ b/http.c
@@ -160,11 +160,11 @@ static enum mog_next http_forward_in_progress(struct mog_fd *mfd, bool needq)
 {
         struct mog_http *http = &mfd->as.http;
         enum mog_http_method method = http->_p.http_method;
-        struct mog_dev *dev;
 
         if (needq) {
-                dev = mog_dev_for(http->svc, http->_p.mog_devid, false);
-                if (dev && !mog_ioq_ready(&dev->ioq, mfd))
+                struct mog_file *file = &http->forward->as.file;
+
+                if (file->ioq && !mog_ioq_ready(file->ioq, mfd))
                         /* no need to setup/stash rbuf, it's been done */
                         return MOG_NEXT_IGNORE;
         }