Fix tunnel receive fail while msgs still buffered.