Skip to content
Snippets Groups Projects
Unverified Commit aa02636e authored by Sébastien Blin's avatar Sébastien Blin
Browse files

lrc: disconnect form dbus when closing

This was done in the destructor of CallModel. But we don't use this
class anymore. So do it in lrc.cpp

Change-Id: Ib2ea27abec706496f82cc5cd6fae1fbd5c80f734
parent 28fd0dc3
Branches
No related tags found
No related merge requests found
...@@ -18,6 +18,12 @@ ...@@ -18,6 +18,12 @@
***************************************************************************/ ***************************************************************************/
#include "api/lrc.h" #include "api/lrc.h"
#ifndef _MSC_VER
#include <unistd.h>
#else
#include "../../daemon/MSVC/unistd.h"
#endif // !_MSC_VER
// Models and database // Models and database
#include "api/newaccountmodel.h" #include "api/newaccountmodel.h"
#include "api/avmodel.h" #include "api/avmodel.h"
...@@ -59,6 +65,12 @@ Lrc::Lrc() ...@@ -59,6 +65,12 @@ Lrc::Lrc()
Lrc::~Lrc() Lrc::~Lrc()
{ {
//Unregister from the daemon
InstanceManagerInterface& instance = InstanceManager::instance();
Q_NOREPLY instance.Unregister(getpid());
#ifndef ENABLE_LIBWRAP
instance.connection().disconnectFromBus(instance.connection().baseService());
#endif //ENABLE_LIBWRAP
} }
const NewAccountModel& const NewAccountModel&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment