First implementation for the conversation system (not 100% finished yet)
This commit is contained in:
@@ -226,7 +226,8 @@ inline sockaddr_in* resolveAddress(const string& host, uint16_t port) {
|
||||
}
|
||||
|
||||
bool InstanceHandler::startInstance() {
|
||||
if (this->active) return false;
|
||||
if (this->active)
|
||||
return false;
|
||||
active = true;
|
||||
this->web_list->enabled = ts::config::server::enable_teamspeak_weblist;
|
||||
|
||||
@@ -236,6 +237,12 @@ bool InstanceHandler::startInstance() {
|
||||
return false;
|
||||
}
|
||||
|
||||
this->conversation_io = make_shared<event::EventExecutor>("conv io #");
|
||||
if(!this->conversation_io->initialize(1)) { //TODO: Make the conversation IO loop thread size configurable
|
||||
logCritical(LOG_GENERAL, "Failed to initialize conversation io write loop");
|
||||
return false;
|
||||
}
|
||||
|
||||
//Startup file server
|
||||
sockaddr_in *fAddr = resolveAddress(this->properties()[property::SERVERINSTANCE_FILETRANSFER_HOST].as<string>(), this->properties()[property::SERVERINSTANCE_FILETRANSFER_PORT].as<uint16_t>());
|
||||
if (!fAddr) {
|
||||
|
||||
Reference in New Issue
Block a user