Skip to content
Snippets Groups Projects
Commit 514516e9 authored by Juntong Liu's avatar Juntong Liu
Browse files

Stop module loading after iocInit

parent b5144d17
No related branches found
No related tags found
No related merge requests found
...@@ -918,6 +918,11 @@ int require(const char *module, const char *version, const char *args) { ...@@ -918,6 +918,11 @@ int require(const char *module, const char *version, const char *args) {
return -1; return -1;
} }
if (interruptAccept) {
printf("Stopping module loading... Module %s is not loaded!\n", module);
return -1;
}
/* either order for version and args, either may be empty or NULL */ /* either order for version and args, either may be empty or NULL */
if (version && strchr(version, '=')) { if (version && strchr(version, '=')) {
const char *v = version; const char *v = version;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment