attachserverproc-dont-dequeue-if-not-in-queue-20040602
authorDerrick Brashear <shadow@dementia.org>
Wed, 2 Jun 2004 07:08:01 +0000 (07:08 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 2 Jun 2004 07:08:01 +0000 (07:08 +0000)
FIXES 4699

can't see what else this can be. pile of details in the ticket.

src/rx/rx.c

index 4155fe6..11b7e5d 100644 (file)
@@ -3993,7 +3993,8 @@ rxi_AttachServerProc(register struct rx_call *call,
            MUTEX_ENTER(&rx_stats_mutex);
            rx_nWaiting--;
            MUTEX_EXIT(&rx_stats_mutex);
-           queue_Remove(call);
+           if (queue_IsOnQueue(call))
+               queue_Remove(call);
        }
        call->state = RX_STATE_ACTIVE;
        call->mode = RX_MODE_RECEIVING;