Skip to content

Commit b9577cb

Browse files
committed
CDRIVER-3587 use centralized check for valid stream
1 parent 6ad0608 commit b9577cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libmongoc/src/mongoc/mongoc-client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2964,7 +2964,7 @@ _mongoc_client_end_sessions (mongoc_client_t *client)
29642964

29652965
mongoc_cmd_parts_cleanup (&parts);
29662966

2967-
if (!stream->stream) {
2967+
if (!mongoc_cluster_stream_valid (cluster, stream)) {
29682968
/* The stream was invalidated as a result of a network error, so we
29692969
* stop sending commands. */
29702970
break;

0 commit comments

Comments
 (0)