Merge pull request #20 from keenlogics/develop
Bugfix: ConnectionImpl::reportError for loops runs out of bounds
This commit is contained in:
commit
5a1539b18c
|
|
@ -308,10 +308,10 @@ public:
|
||||||
Monitor monitor(this);
|
Monitor monitor(this);
|
||||||
|
|
||||||
// all deferred result objects in the channels should report this error too
|
// all deferred result objects in the channels should report this error too
|
||||||
for (auto &iter : _channels)
|
while (!_channels.empty())
|
||||||
{
|
{
|
||||||
// report the errors
|
// report the errors
|
||||||
iter.second->reportError(message, false);
|
_channels.begin()->second->reportError(message, false);
|
||||||
|
|
||||||
// leap out if no longer valid
|
// leap out if no longer valid
|
||||||
if (!monitor.valid()) return;
|
if (!monitor.valid()) return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue