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
......@@ -18,6 +18,12 @@
***************************************************************************/
#include "api/lrc.h"
#ifndef _MSC_VER
#include <unistd.h>
#else
#include "../../daemon/MSVC/unistd.h"
#endif // !_MSC_VER
// Models and database
#include "api/newaccountmodel.h"
#include "api/avmodel.h"
......@@ -59,6 +65,12 @@ 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&
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment