Method
Deactivate
Source from the content-addressed store, hash-verified
| 394 | } |
| 395 | |
| 396 | void ConfigObject::Deactivate(bool runtimeRemoved, const Value& cookie) |
| 397 | { |
| 398 | CONTEXT("Deactivating object '" << GetName() << "' of type '" << GetReflectionType()->GetName() << "'"); |
| 399 | |
| 400 | { |
| 401 | ObjectLock olock(this); |
| 402 | |
| 403 | if (!IsActive()) |
| 404 | return; |
| 405 | |
| 406 | SetActive(false, true); |
| 407 | |
| 408 | SetAuthority(false); |
| 409 | |
| 410 | Stop(runtimeRemoved); |
| 411 | } |
| 412 | |
| 413 | ASSERT(GetStopCalled()); |
| 414 | |
| 415 | NotifyActive(cookie); |
| 416 | } |
| 417 | |
| 418 | void ConfigObject::OnConfigLoaded() |
| 419 | { |