Updating the license system
This commit is contained in:
@@ -14,6 +14,7 @@ ServerManager::ServerManager(InstanceHandler* handle) : handle(handle) {
|
||||
this->puzzles = new protocol::PuzzleManager();
|
||||
this->handshakeTickers = new threads::Scheduler(1, "handshake ticker");
|
||||
this->execute_loop = new event::EventExecutor("executor #");
|
||||
//this->join_loop = new event::EventExecutor("joiner #");
|
||||
this->_ioManager = new io::VoiceIOManager();
|
||||
|
||||
this->handshakeTickers->schedule("ticker", [&](){ this->tickHandshakeClients(); }, seconds(1));
|
||||
@@ -41,6 +42,11 @@ ServerManager::~ServerManager() {
|
||||
delete this->execute_loop;
|
||||
this->execute_loop = nullptr;
|
||||
|
||||
if(this->join_loop)
|
||||
this->join_loop->shutdown();
|
||||
delete this->join_loop;
|
||||
this->join_loop = nullptr;
|
||||
|
||||
if(this->handshakeTickers) {
|
||||
this->handshakeTickers->shutdown();
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@ namespace ts {
|
||||
|
||||
protocol::PuzzleManager* rsaPuzzles() { return this->puzzles; }
|
||||
|
||||
event::EventExecutor* get_join_loop() { return this->join_loop; }
|
||||
event::EventExecutor* get_executor_loop() { return this->execute_loop; }
|
||||
|
||||
inline void adjust_executor_threads() {
|
||||
@@ -84,6 +85,7 @@ namespace ts {
|
||||
protocol::PuzzleManager* puzzles = nullptr;
|
||||
|
||||
event::EventExecutor* execute_loop = nullptr;
|
||||
event::EventExecutor* join_loop = nullptr;
|
||||
threads::Scheduler* handshakeTickers = nullptr;
|
||||
io::VoiceIOManager* _ioManager = nullptr;
|
||||
|
||||
|
||||
@@ -7583,6 +7583,7 @@ CommandResult ConnectedClient::handleCommandDummy_IpChange(ts::Command &cmd) {
|
||||
}
|
||||
}
|
||||
|
||||
this->properties()[property::CONNECTION_CLIENT_IP] = this->getLoggingPeerIp();
|
||||
return CommandResult::Success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user