| 121 | } |
| 122 | |
| 123 | void ModuleRegistry::UnRegister(const ModuleInfo* info) |
| 124 | { |
| 125 | if (info->id > 1) |
| 126 | { |
| 127 | Module* curr = nullptr; |
| 128 | { |
| 129 | MutexLock lock(*modulesLock()); |
| 130 | curr = modules()->operator[](info->name); |
| 131 | assert(curr != nullptr); |
| 132 | } |
| 133 | curr->Stop(); |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | Module* ModuleRegistry::GetModule(long id) |
| 138 | { |