Fixed connection reject issue in rtmpt. Refactored received message task.