{
CallButtonVector::iterator it;
+ /* If there is still an elevator coming, don't turn it off! */
+ if (ec_.oneElevatorWillStillStopAt (floor, direction))
+ return;
+
for (it=call_buttons_.begin(); it!=call_buttons_.end(); it++)
if ((*it)->getFloorNumber() == floor && (*it)->getDirection() == direction)
(*it)->set_active (false);