浏览代码

rised max connected users

Kajetan Johannes Hammerle 4 年之前
父节点
当前提交
a6b5187720
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Main.cpp

+ 1 - 1
Main.cpp

@@ -12,7 +12,7 @@ int main() {
     if(socket.start(4456)) {
         return 0;
     }
-    std::array<Client, 1> clients;
+    std::array<Client, 20> clients;
     while(true) {
         int clientId = socket.waitForClients(100);
         if(clientId != -1) {