fix receive thread pending issue when received wrong packet.

Change-Id: Ia313fc3fa543b49d43b126c7eab7f1a184e3566e
Reviewed-on: http://10.208.24.69:8080/206
Reviewed-by: Xudong Huang <xudongh@juniper.net>