Fixed blocking issue with recv in NetworkManager