Dave's mind dropped the other thoughts as he tried to cope with the realization that this was another corridor.
Dave gave up on other thoughts as he realized where he was.
Dave could not realize that he was in a corridor.