summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_spanningtree/treeserver.cpp7
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp5
2 files changed, 7 insertions, 5 deletions
diff --git a/src/modules/m_spanningtree/treeserver.cpp b/src/modules/m_spanningtree/treeserver.cpp
index 7c4287b4d..ec3fceb1d 100644
--- a/src/modules/m_spanningtree/treeserver.cpp
+++ b/src/modules/m_spanningtree/treeserver.cpp
@@ -69,6 +69,13 @@ TreeServer::TreeServer(SpanningTreeUtilities* Util, InspIRCd* Instance, std::str
this->SetPingFlag();
DupError = false;
StartBurst = rtt = 0;
+
+ timeval t;
+ gettimeofday(&t, NULL);
+ long ts = (t.tv_sec * 1000) + (t.tv_usec / 1000);
+ this->StartBurst = ts;
+ Instance->Log(DEBUG, "Started bursting at time %lu", ts);
+
/* find the 'route' for this server (e.g. the one directly connected
* to the local server, which we can use to reach it)
*
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index 4e058b416..e6e4e7582 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -1174,11 +1174,6 @@ bool TreeSocket::ProcessLine(std::string &line)
params.push_back(":"+InboundDescription);
Utils->DoOneToAllButSender(Instance->Config->GetSID(),"SERVER",params,InboundServerName);
this->bursting = true;
- timeval t;
- gettimeofday(&t, NULL);
- long ts = (t.tv_sec * 1000) + (t.tv_usec / 1000);
- Node->StartBurst = ts;
- this->Instance->Log(DEBUG, "Started bursting at time %lu", ts);
this->DoBurst(Node);
}
else if (command == "ERROR")