Skip to content

Commit

Permalink
[libcontentaction] Handle synchronous triggering. Fixes JB#45440
Browse files Browse the repository at this point in the history
The trigger method used to block until commit sha1 6a4d477.
  • Loading branch information
rainemak committed May 3, 2019
1 parent e33442c commit 6b9838b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/dbus.cpp
Expand Up @@ -93,8 +93,11 @@ void DBusPrivate::trigger(bool wait) const
}

MRemoteAction action(busName, objectPath, iface, method, arguments);

action.trigger();
if (wait) {
action.triggerAndWait();
} else {
action.trigger();
}
}

} // end namespace ContentAction

0 comments on commit 6b9838b

Please sign in to comment.