Removed the old voice io

This commit is contained in:
WolverinDEV
2021-04-15 17:34:44 +02:00
parent cd5804125d
commit 63eccff578
10 changed files with 33 additions and 581 deletions
+1 -6
View File
@@ -15,7 +15,6 @@ using namespace ts::server;
VirtualServerManager::VirtualServerManager(InstanceHandler* handle) : handle(handle) {
this->puzzles = new udp::PuzzleManager{};
this->_ioManager = new io::VoiceIOManager();
}
VirtualServerManager::~VirtualServerManager() {
@@ -35,10 +34,6 @@ VirtualServerManager::~VirtualServerManager() {
delete this->puzzles;
this->puzzles = nullptr;
if(this->_ioManager) this->_ioManager->shutdownGlobally();
delete this->_ioManager;
this->_ioManager = nullptr;
}
bool VirtualServerManager::initialize(bool autostart) {
@@ -280,7 +275,7 @@ ts::ServerId VirtualServerManager::next_available_server_id(bool& success) {
ServerReport VirtualServerManager::report() {
ServerReport result{};
for(const auto& sr : this->serverInstances()) {
result.avariable++;
result.available++;
if(sr->running()) {
result.online++;
result.slots += sr->properties()[property::VIRTUALSERVER_MAXCLIENTS].as_or<size_t>(0);