diff options
| author | 2022-07-01 16:16:58 -0700 | |
|---|---|---|
| committer | 2022-07-01 16:16:58 -0700 | |
| commit | 834d0b2479914d99e0237cb023295fd4c1f28f68 (patch) | |
| tree | fbeda0390a2fe25ce9a8cba9cd6016dc1bce404c /api/api.go | |
| parent | 1c0ca5caae934bd53f521e5bc83ea0b7bae2e2a6 (diff) | |
Fix stop behavior in PersistentConnectionManager.
PersistentConnectionManager tries to maintain a connection whenever
disconnected. Currently, there is no way to disconnect from this
connection as the manually unbind is not treated any differently than
any other disconnection. This change addresses this oversight by
suppressing reconnect logic on manual unbinds.
This change also fixes a callback issue where listeners were not
informed about disconnects when manually unbound.
Fixes: 237803638
Test: ObservableServiceConnectionTest#testUnbind
Test: PersistentConnectionManagerTest#testStopDoesNotReconnect
Change-Id: I0887e31754429cc02391df5783868d5c132a48eb
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions