Fixed packet receiving problem in main for start/end packets.
Merge remote-tracking branch 'origin/master'