Renamed TSServer to VirtualServer
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include "client/voice/VoiceClient.h"
|
||||
#include <log/LogUtils.h>
|
||||
#include "InstanceHandler.h"
|
||||
#include "TSServer.h"
|
||||
#include "VirtualServer.h"
|
||||
#include "./manager/ConversationManager.h"
|
||||
|
||||
using namespace std;
|
||||
@@ -13,7 +13,7 @@ using namespace ts::protocol;
|
||||
using namespace ts::buffer;
|
||||
|
||||
extern InstanceHandler* serverInstance;
|
||||
inline void banClientFlood(TSServer* server, const shared_ptr<ConnectedClient>& cl, time_point<system_clock> until){
|
||||
inline void banClientFlood(VirtualServer* server, const shared_ptr<ConnectedClient>& cl, time_point<system_clock> until){
|
||||
auto time = until.time_since_epoch().count() == 0 ? 0L : chrono::ceil<chrono::seconds>(until - system_clock::now()).count();
|
||||
|
||||
std::string reason = "You're flooding too much";
|
||||
@@ -30,7 +30,7 @@ inline void banClientFlood(TSServer* server, const shared_ptr<ConnectedClient>&
|
||||
timing_end = system_clock::now(); \
|
||||
variable = duration_cast<decltype(variable)>(timing_end - timing_begin);
|
||||
|
||||
void TSServer::executeServerTick() {
|
||||
void VirtualServer::executeServerTick() {
|
||||
threads::MutexTryLock l(this->stateLock); //Should not attempt to shutdown or start the server while ticking
|
||||
if(!l) {
|
||||
if(this->running())
|
||||
|
||||
Reference in New Issue
Block a user