Renamed TSServer to VirtualServer
This commit is contained in:
@@ -182,14 +182,14 @@ InstanceHandler::InstanceHandler(SqlDataManager *sql) : sql(sql) {
|
||||
this->web_list = make_shared<weblist::WebListManager>();
|
||||
}
|
||||
|
||||
void InstanceHandler::executeTick(TSServer* server) {
|
||||
void InstanceHandler::executeTick(VirtualServer* server) {
|
||||
auto str = "server_" + to_string(server->getServerId());
|
||||
if(!this->tick_manager->schedule(str, std::bind(&TSServer::executeServerTick, server), milliseconds(500))) {
|
||||
if(!this->tick_manager->schedule(str, std::bind(&VirtualServer::executeServerTick, server), milliseconds(500))) {
|
||||
logCritical(LOG_INSTANCE, "Could not schedule server ticking task!");
|
||||
}
|
||||
}
|
||||
|
||||
void InstanceHandler::cancelExecute(TSServer* server) {
|
||||
void InstanceHandler::cancelExecute(VirtualServer* server) {
|
||||
auto str = "server_" + to_string(server->getServerId());
|
||||
if(!this->tick_manager->cancelTask(str)){
|
||||
logError(LOG_INSTANCE, "Could not stop server tick task!");
|
||||
|
||||
Reference in New Issue
Block a user