| 660 | } |
| 661 | |
| 662 | void |
| 663 | BundlePrivate::StartFailed() |
| 664 | { |
| 665 | state = Bundle::STATE_STOPPING; |
| 666 | coreCtx->listeners.BundleChanged( |
| 667 | BundleEvent(BundleEvent::BUNDLE_STOPPING, MakeBundle(this->shared_from_this()))); |
| 668 | RemoveBundleResources(); |
| 669 | auto oldBundleContext = bundleContext.Exchange(std::shared_ptr<BundleContextPrivate>()); |
| 670 | if (oldBundleContext) |
| 671 | { |
| 672 | oldBundleContext->Invalidate(); |
| 673 | } |
| 674 | state = Bundle::STATE_RESOLVED; |
| 675 | coreCtx->listeners.BundleChanged( |
| 676 | BundleEvent(BundleEvent::BUNDLE_STOPPED, MakeBundle(this->shared_from_this()))); |
| 677 | } |
| 678 | |
| 679 | BundlePrivate::BundlePrivate(CoreBundleContext* coreCtx) |
| 680 | : coreCtx(coreCtx) |
nothing calls this directly
no test coverage detected