Skip to content

Commit a78c8ad

Browse files
PaulPaul
authored andcommitted
continued e8a4c50
1 parent e8a4c50 commit a78c8ad

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/zmq/zmqnotificationinterface.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ bool CZMQNotificationInterface::Initialize()
9292
{
9393
if ((*it)->Initialize(pcontext))
9494
{
95-
LogPrint("zmq", " Notifier %s ready (address = %s)\n", it->GetType(), it->GetAddress());
95+
LogPrint("zmq", " Notifier %s ready (address = %s)\n", (*it)->GetType(), (*it)->GetAddress());
9696
}
9797
else
9898
{
99-
LogPrint("zmq", " Notifier %s failed (address = %s)\n", it->GetType(), it->GetAddress());
99+
LogPrint("zmq", " Notifier %s failed (address = %s)\n", (*it)->GetType(), (*it)->GetAddress());
100100
break;
101101
}
102102
}
@@ -117,7 +117,7 @@ void CZMQNotificationInterface::Shutdown()
117117
{
118118
for (auto it=notifiers.begin(); it!=notifiers.end(); ++it)
119119
{
120-
LogPrint("zmq", " Shutdown notifier %s at %s\n", it->GetType(), it->GetAddress());
120+
LogPrint("zmq", " Shutdown notifier %s at %s\n", (*it)->GetType(), (*it)->GetAddress());
121121
(*it)->Shutdown();
122122
}
123123
zmq_ctx_destroy(pcontext);
@@ -140,7 +140,7 @@ void CZMQNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, co
140140
else
141141
{
142142
(*it)->Shutdown();
143-
it = notifiers.erase(i);
143+
it = notifiers.erase(it);
144144
}
145145
}
146146
}
@@ -172,7 +172,7 @@ void CZMQNotificationInterface::NotifyTransactionLock(const CTransaction &tx)
172172
else
173173
{
174174
(*it)->Shutdown();
175-
it = notifiers.erase(i);
175+
it = notifiers.erase(it);
176176
}
177177
}
178178
}
@@ -188,7 +188,7 @@ void CZMQNotificationInterface::NotifyGovernanceVote(const CGovernanceVote &vote
188188
else
189189
{
190190
(*it)->Shutdown();
191-
it = notifiers.erase(i);
191+
it = notifiers.erase(it);
192192
}
193193
}
194194
}
@@ -204,7 +204,7 @@ void CZMQNotificationInterface::NotifyGovernanceObject(const CGovernanceObject &
204204
else
205205
{
206206
(*it)->Shutdown();
207-
it = notifiers.erase(i);
207+
it = notifiers.erase(it);
208208
}
209209
}
210210
}

0 commit comments

Comments
 (0)