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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user