Fixes the legacy media bundle to not throw exceptions on stop because its start hasn't registered the MediaService.

cusax-fix
Lyubomir Marinov 17 years ago
parent d538e0fc50
commit 71d888ac99

@ -176,8 +176,16 @@ public static BundleContext getBundleContext()
public void stop(BundleContext context)
throws Exception
{
mediaServiceImpl.stop();
mediaServiceRegistration.unregister();
if (mediaServiceImpl != null)
{
mediaServiceImpl.stop();
mediaServiceImpl = null;
}
if (mediaServiceRegistration != null)
{
mediaServiceRegistration.unregister();
mediaServiceRegistration = null;
}
}
}

Loading…
Cancel
Save