chiark / gitweb /
Recalculate inqueue/spare for _use_ properly
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 28 May 2010 21:46:21 +0000 (22:46 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 28 May 2010 21:46:21 +0000 (22:46 +0100)
xmit.c

diff --git a/xmit.c b/xmit.c
index 8adb082..269e823 100644 (file)
--- a/xmit.c
+++ b/xmit.c
@@ -81,7 +81,7 @@ void check_assign_articles(void) {
     }
     if (use) {
       int inqueue, spare;
-      conn_inqueue_spare(walk, &inqueue, &spare);
+      conn_inqueue_spare(use, &inqueue, &spare);
       if (!inqueue) use->since_activity= 0; /* reset idle counter */
       while (spare>0) {
        Article *art= dequeue(0);