We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d32b67 commit 4476c92Copy full SHA for 4476c92
rcl/src/rcl/init.c
@@ -244,15 +244,15 @@ rcl_shutdown(rcl_context_t * context)
244
return RCL_RET_ALREADY_SHUTDOWN;
245
}
246
247
- // reset the instance id to 0 to indicate "invalid"
248
- rcutils_atomic_store((atomic_uint_least64_t *)(&context->instance_id_storage), 0);
249
-
250
rmw_ret_t rmw_ret = rmw_shutdown(&(context->impl->rmw_context));
251
if (RMW_RET_OK != rmw_ret) {
252
RCL_SET_ERROR_MSG(rmw_get_error_string().str);
253
return rcl_convert_rmw_ret_to_rcl_ret(rmw_ret);
254
255
+ // reset the instance id to 0 to indicate "invalid"
+ rcutils_atomic_store((atomic_uint_least64_t *)(&context->instance_id_storage), 0);
+
256
return RCL_RET_OK;
257
258
0 commit comments