From 4351678065e1e0f2bb5cf3c7eb7e2f17b6470833 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Thu, 4 Mar 2010 10:39:47 -0600 Subject: Add RESYNC command to allow automatic recovery from a detected desync --- src/modules/m_spanningtree/compat.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules/m_spanningtree/compat.cpp') diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp index 9e48804c3..d10d0ce9f 100644 --- a/src/modules/m_spanningtree/compat.cpp +++ b/src/modules/m_spanningtree/compat.cpp @@ -143,6 +143,11 @@ void TreeSocket::WriteLine(std::string line) line.erase(b,c-b); } } + else if (proto_version < 1203 && command == "RESYNC") + { + // drop the command. 2.0 and earlier cannot automatically recover from desync + return; + } else if (proto_version < 1202 && command == "ENCAP") { // :src ENCAP target command [args...] -- cgit v1.3.1-10-gc9f91