Use one sender thread for everything, as there may occur conflicts with multiple sender threads. This is a temporary solution, the best solution would be having multiple sender threads, but sending all packets for the same target using the same thread, so that no packets are corrupted.

This commit is contained in:
lotodore
2007-11-22 19:11:45 +00:00
parent 6489f28e93
commit 49162870a1
3 changed files with 3 additions and 41 deletions
+2 -1
View File
@@ -81,6 +81,8 @@ public:
ServerStats GetStats() const;
SenderThread &GetSender();
protected:
typedef std::deque<boost::shared_ptr<ConnectData> > ConnectQueue;
@@ -137,7 +139,6 @@ protected:
void ReadStatisticsFile();
void SaveStatisticsFile();
SenderThread &GetSender();
ReceiverHelper &GetReceiver();
bool CheckPassword(const std::string &password) const;