Skip to content

Commit 60b13cd

Browse files
authored
Listener unhandled exception (#1132)
* hazelcast_client_not_active check added
1 parent 59476dd commit 60b13cd

File tree

1 file changed

+9
-0
lines changed
  • hazelcast/src/hazelcast/client

1 file changed

+9
-0
lines changed

hazelcast/src/hazelcast/client/spi.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,6 +3006,15 @@ cluster_view_listener::try_register(
30063006
return;
30073007
}
30083008

3009+
try {
3010+
f.get();
3011+
} catch (exception::hazelcast_client_not_active& e) {
3012+
/**
3013+
* If client is shutdown, we should not retry for another
3014+
* connection
3015+
* */
3016+
return;
3017+
}
30093018
// completes with exception, listener needs to be reregistered
30103019
self->try_reregister_to_random_connection(conn_id);
30113020
});

0 commit comments

Comments
 (0)