Subversion Repositories HelenOS-historic

Rev

Rev 1568 | Rev 1591 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1568 Rev 1573
Line 104... Line 104...
104
         * not the originator
104
         * not the originator
105
         */
105
         */
106
        spinlock_lock(&answer->data.phone->lock);
106
        spinlock_lock(&answer->data.phone->lock);
107
        spinlock_lock(&TASK->answerbox.lock);
107
        spinlock_lock(&TASK->answerbox.lock);
108
        if (answer->data.phone->state == IPC_PHONE_CONNECTED) {
108
        if (answer->data.phone->state == IPC_PHONE_CONNECTED) {
109
            list_remove(&answer->data.phone->list);
109
            list_remove(&answer->data.phone->link);
110
            answer->data.phone->state = IPC_PHONE_SLAMMED;
110
            answer->data.phone->state = IPC_PHONE_SLAMMED;
111
        }
111
        }
112
        spinlock_unlock(&TASK->answerbox.lock);
112
        spinlock_unlock(&TASK->answerbox.lock);
113
        spinlock_unlock(&answer->data.phone->lock);
113
        spinlock_unlock(&answer->data.phone->lock);
114
    }
114
    }