Fix a pool reconnection issue in some rare case.