diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-26 18:29:18 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-26 18:29:18 +0200 |
commit | 7811c9e9baaa89ad382db5cd05fbffcb1c876377 (patch) | |
tree | b1b9b1012947ada7b5971f3dccaf4ec1e48bbd7f | |
parent | 9ea268a6d0f4054c31b2729ecd6cfcc9d07a2d6a (diff) | |
download | sink-7811c9e9baaa89ad382db5cd05fbffcb1c876377.tar.gz sink-7811c9e9baaa89ad382db5cd05fbffcb1c876377.zip |
Use the resourceaccessfactory for notifiers as well.
Otherwise we end up trying to start the resource from multiple places
in notifiertest.
-rw-r--r-- | common/notifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/notifier.cpp b/common/notifier.cpp index 1f33834..7dbc85e 100644 --- a/common/notifier.cpp +++ b/common/notifier.cpp | |||
@@ -59,7 +59,7 @@ Notifier::Notifier(const QSharedPointer<ResourceAccess> &resourceAccess) : d(new | |||
59 | 59 | ||
60 | Notifier::Notifier(const QByteArray &instanceIdentifier, const QByteArray &resourceType) : d(new Sink::Notifier::Private) | 60 | Notifier::Notifier(const QByteArray &instanceIdentifier, const QByteArray &resourceType) : d(new Sink::Notifier::Private) |
61 | { | 61 | { |
62 | auto resourceAccess = Sink::ResourceAccess::Ptr::create(instanceIdentifier, resourceType); | 62 | auto resourceAccess = Sink::ResourceAccessFactory::instance().getAccess(instanceIdentifier, resourceType); |
63 | resourceAccess->open(); | 63 | resourceAccess->open(); |
64 | d->listenForNotifications(resourceAccess); | 64 | d->listenForNotifications(resourceAccess); |
65 | } | 65 | } |