Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #7 from nemomobile/dont-disconnect-dead-signal
Browse files Browse the repository at this point in the history
Don't disconnect dead signal
  • Loading branch information
Denis Zalevskiy committed Mar 12, 2014
2 parents 39affd4 + 2b3a1b0 commit e2d9eb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 3 additions & 5 deletions src/contextkit-subscriber/actor.hpp
Expand Up @@ -16,10 +16,7 @@ class Actor_ : public QThread
Q_OBJECT;
protected:
Actor_(QObject *parent) : QThread(parent) {}
virtual ~Actor_() {
if (!wait(10000))
qWarning() << "Timeout: no quit request was sent!";
}
virtual ~Actor_() {}
};


Expand All @@ -43,7 +40,8 @@ class Actor : public Actor_
if (isRunning())
quit();
if (QThread::currentThread() != this)
wait();
if (!wait(10000))
qWarning() << "Timeout: no quit from thread!";
}
}

Expand Down
4 changes: 0 additions & 4 deletions src/contextkit-subscriber/property.cpp
Expand Up @@ -213,10 +213,6 @@ void PropertyMonitor::unsubscribe(UnsubscribeRequest *req)

auto handler = phandlers.value();

// TODO when qt4 support will be removed
// disconnect(handler, &Property::changed
// , tgt, &ContextPropertyPrivate::changed);
disconnect(handler, SIGNAL(changed(QVariant)), tgt, SLOT(onChanged(QVariant)));
if (ptargets->isEmpty()) {
// last subscriber is gone
targets_.erase(ptargets);
Expand Down

0 comments on commit e2d9eb1

Please sign in to comment.