summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-03 11:49:25 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-03 11:49:25 +0000
commit2d34bb24b265a9c59f0741b6d7c44e3fd844767f (patch)
tree11722eaa2ef4d1bbd6881a5ed91ea5235320340f
parent7483f170ded6e8528817aa051ddc5351639bbf87 (diff)
Fix burst time indicator: set startburst in treeserver's constructor, BURST in treesocket is only valid placement for incoming connections.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8803 e03df62e-2008-0410-955e-edbf42e46eb7
-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")