Subversion Repositories HelenOS

Rev

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

Rev 2839 Rev 2840
Line 641... Line 641...
641
                ipl = interrupts_disable();
641
                ipl = interrupts_disable();
642
                spinlock_lock(&TASK->lock);
642
                spinlock_lock(&TASK->lock);
643
                spinlock_lock(&TASK->answerbox.lock);
643
                spinlock_lock(&TASK->answerbox.lock);
644
                if (list_empty(&TASK->answerbox.connected_phones)) {
644
                if (list_empty(&TASK->answerbox.connected_phones)) {
645
                    /* Last phone has been disconnected */
645
                    /* Last phone has been disconnected */
-
 
646
                    TASK->kb_thread_at_hand = false;
646
                    TASK->kb_thread = NULL;
647
                    TASK->kb_thread = NULL;
647
                    done = true;
648
                    done = true;
648
                    printf("phone list is empty\n");
649
                    printf("phone list is empty\n");
649
                }
650
                }
650
                spinlock_unlock(&TASK->answerbox.lock);
651
                spinlock_unlock(&TASK->answerbox.lock);