resourcepolicyplugin: Emit resources released signal for acquiring resources as well.
Change-Id: Ic1b31b1c4dd91251eec278a0840bb06635c828c6 Done-with: Juho Hämäläinen <juho.hamalainen@tieto.com> Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
This commit is contained in:
committed by
Robin Burchell
parent
18e79701e1
commit
5b3292a14e
@@ -323,7 +323,7 @@ void ResourcePolicyInt::handleResourcesReleased()
|
|||||||
m_acquired = 0;
|
m_acquired = 0;
|
||||||
QMap<const ResourcePolicyImpl*, clientEntry>::iterator i = m_clients.begin();
|
QMap<const ResourcePolicyImpl*, clientEntry>::iterator i = m_clients.begin();
|
||||||
while (i != m_clients.end()) {
|
while (i != m_clients.end()) {
|
||||||
if (i.value().status == GrantedResource) {
|
if (i.value().status != Initial) {
|
||||||
#ifdef RESOURCE_DEBUG
|
#ifdef RESOURCE_DEBUG
|
||||||
qDebug() << "##### " << i.value().id << ": HANDLE RELEASED, acquired (" << m_acquired << ") emitting resourcesReleased()";
|
qDebug() << "##### " << i.value().id << ": HANDLE RELEASED, acquired (" << m_acquired << ") emitting resourcesReleased()";
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user