Connection::fail() will now also call the channel::onError method
This commit is contained in:
parent
549fec5cb1
commit
8eed709988
|
|
@ -623,7 +623,7 @@ public:
|
||||||
|
|
||||||
// all later deferred objects should report an error, because it
|
// all later deferred objects should report an error, because it
|
||||||
// was not possible to complete the instruction as the channel is
|
// was not possible to complete the instruction as the channel is
|
||||||
// now closed
|
// now closed (but the channel onError does not have to run)
|
||||||
reportError("Channel has been closed", false);
|
reportError("Channel has been closed", false);
|
||||||
|
|
||||||
// done
|
// done
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,7 @@ bool ConnectionImpl::fail(const Monitor &monitor, const char *message)
|
||||||
while (!_channels.empty())
|
while (!_channels.empty())
|
||||||
{
|
{
|
||||||
// report the errors
|
// report the errors
|
||||||
_channels.begin()->second->reportError(message, false);
|
_channels.begin()->second->reportError(message);
|
||||||
|
|
||||||
// leap out if no longer valid
|
// leap out if no longer valid
|
||||||
if (!monitor.valid()) return false;
|
if (!monitor.valid()) return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue