Skip to content

Commit

Permalink
continued e8a4c50
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul authored and Paul committed Jul 2, 2018
1 parent e8a4c50 commit a78c8ad
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/zmq/zmqnotificationinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ bool CZMQNotificationInterface::Initialize()
{
if ((*it)->Initialize(pcontext))
{
LogPrint("zmq", " Notifier %s ready (address = %s)\n", it->GetType(), it->GetAddress());
LogPrint("zmq", " Notifier %s ready (address = %s)\n", (*it)->GetType(), (*it)->GetAddress());
}
else
{
LogPrint("zmq", " Notifier %s failed (address = %s)\n", it->GetType(), it->GetAddress());
LogPrint("zmq", " Notifier %s failed (address = %s)\n", (*it)->GetType(), (*it)->GetAddress());
break;
}
}
Expand All @@ -117,7 +117,7 @@ void CZMQNotificationInterface::Shutdown()
{
for (auto it=notifiers.begin(); it!=notifiers.end(); ++it)
{
LogPrint("zmq", " Shutdown notifier %s at %s\n", it->GetType(), it->GetAddress());
LogPrint("zmq", " Shutdown notifier %s at %s\n", (*it)->GetType(), (*it)->GetAddress());
(*it)->Shutdown();
}
zmq_ctx_destroy(pcontext);
Expand All @@ -140,7 +140,7 @@ void CZMQNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, co
else
{
(*it)->Shutdown();
it = notifiers.erase(i);
it = notifiers.erase(it);
}
}
}
Expand Down Expand Up @@ -172,7 +172,7 @@ void CZMQNotificationInterface::NotifyTransactionLock(const CTransaction &tx)
else
{
(*it)->Shutdown();
it = notifiers.erase(i);
it = notifiers.erase(it);
}
}
}
Expand All @@ -188,7 +188,7 @@ void CZMQNotificationInterface::NotifyGovernanceVote(const CGovernanceVote &vote
else
{
(*it)->Shutdown();
it = notifiers.erase(i);
it = notifiers.erase(it);
}
}
}
Expand All @@ -204,7 +204,7 @@ void CZMQNotificationInterface::NotifyGovernanceObject(const CGovernanceObject &
else
{
(*it)->Shutdown();
it = notifiers.erase(i);
it = notifiers.erase(it);
}
}
}

0 comments on commit a78c8ad

Please sign in to comment.