Skip to content

Commit 497c44b

Browse files
committed
Fix erroneously networking metadata for partially connected users.
1 parent cab23b7 commit 497c44b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/modules/m_spanningtree/treeserver.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ void TreeServer::SendMetadata(const std::string& key, const std::string& data) c
302302

303303
void TreeServer::SendMetadata(const Extensible* ext, const std::string& key, const std::string& data) const
304304
{
305+
if (ext->extype == ExtensionType::USER && !static_cast<const User*>(ext)->IsFullyConnected())
306+
return;
307+
305308
if (GetRoute() && GetRoute()->GetSocket())
306309
GetRoute()->GetSocket()->WriteLine(CommandMetadata::Builder(ext, key, data));
307310
}

0 commit comments

Comments
 (0)