File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -1467,18 +1467,17 @@ stream_not_found (mongoc_topology_t *topology,
1467
1467
{
1468
1468
mongoc_server_description_t * sd ;
1469
1469
1470
- BSON_ASSERT (error );
1471
-
1472
1470
sd = mongoc_topology_server_by_id (topology , server_id , error );
1473
1471
1474
- if (sd && sd -> error .code ) {
1475
- memcpy (error , & sd -> error , sizeof * error );
1476
- } else {
1477
- bson_set_error (error ,
1478
- MONGOC_ERROR_STREAM ,
1479
- MONGOC_ERROR_STREAM_NOT_ESTABLISHED ,
1480
- "Could not find stream for node %s" ,
1481
- connection_address );
1472
+ if (error ) {
1473
+ if (sd && sd -> error .code ) {
1474
+ memcpy (error , & sd -> error , sizeof * error );
1475
+ } else {
1476
+ bson_set_error (error , MONGOC_ERROR_STREAM ,
1477
+ MONGOC_ERROR_STREAM_NOT_ESTABLISHED ,
1478
+ "Could not find stream for node %s" ,
1479
+ connection_address );
1480
+ }
1482
1481
}
1483
1482
1484
1483
if (sd ) {
You can’t perform that action at this time.
0 commit comments