(ixcobra) check if we are authenticated in publishNext before trying to publish a message
This commit is contained in:
1 parent
a0c9d31389
commit
3d401fbc8d
3 files changed
+6
-2
No files matched your search
@@ -506,7 +506,7 @@ namespace ix
|
||||
if (_messageQueue.empty()) return true;
|
||||
|
||||
auto&& msg = _messageQueue.back();
|
||||
if (!publishMessage(msg))
|
||||
if (!_authenticated || !publishMessage(msg))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user