[nfc] set mGetHalRetryCount to 0 if retry success

The meaning of this variable mGetHalRetryCount is to control the number of times to connect to the underlying HAL service. If it exceeds 5 times (which may cause the entire system to restart), the service is not allowed to be initialized again.

bug:380746345
link:https://partnerissuetracker.corp.google.com/u/0/issues/380746345
log:https://issuetracker.google.com/380746345#attachment61067402

This variable should be reset to 0 if initialization is successful, because it is not a "continuous" binder died. Because some accidental factors may cause the HAL to accidentally die several times non-consecutively (successfully during the period), but the number of times reaches mMaxGetHalRetryCount (reinitialization is no longer allowed at this time).

Change-Id: I2486820e5794a837835c6f54b9c33eaa6f8edf20
1 file changed