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

Commit

Permalink
cosmetic changes
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
  • Loading branch information
Denis Zalevskiy committed Apr 9, 2015
1 parent e100c74 commit 60904a4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/contextkit-subscriber/property.cpp
Expand Up @@ -680,12 +680,10 @@ QVariant Property::subscribe_()

void Property::unsubscribe()
{
if (!is_subscribed_)
return;

is_subscribed_ = false;

file_.close();
if (is_subscribed_) {
is_subscribed_ = false;
file_.close();
}
}

void Adapter::postEvent(ReplyEvent *e)
Expand All @@ -698,6 +696,7 @@ bool Adapter::event(QEvent *e)
{
if (e->type() < QEvent::User)
return QObject::event(e);

auto res = true;
auto fn = [this, e, &res]() {
auto t = static_cast<Event::Type>(e->type());
Expand Down Expand Up @@ -837,7 +836,7 @@ void ContextPropertyPrivate::subscribe() const
// unsubscription is asynchronous, so wait for it to be finished
// if resubcribing
if (state_ == Unsubscribing) {
debug::debug("Waiting for being unsuscribed", key_);
debug::debug("Waiting for being unsubcribed", key_);
if (!waitForUnsubscription())
debug::warning("Resubscribing while not unsubscribed yet:", key_);
}
Expand Down

0 comments on commit 60904a4

Please sign in to comment.