transport: exit transport loop when the session is activated.
Merge pull request #2086 from llyzs/llyzs

transport: exit transport loop when the session is activated.