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

Commit

Permalink
do not start reopen timer if already started
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 Nov 10, 2015
1 parent ee4364e commit 4cf9521
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/contextkit-subscriber/property.cpp
Expand Up @@ -722,6 +722,9 @@ QVariant Property::subscribe()

QVariant Property::subscribe_()
{
if (reopen_timer_->isActive())
return QVariant();

if (!file_.tryOpen()) {
reopen_timer_->start(reopen_interval_);
return QVariant();
Expand Down

0 comments on commit 4cf9521

Please sign in to comment.