Fixed crash bug when bt-connection timed out