Browse Source

udp/client: Reduce testing period to 5 seconds

Morph 5 years ago
parent
commit
8ead176639
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/input_common/udp/client.cpp

+ 1 - 1
src/input_common/udp/client.cpp

@@ -344,7 +344,7 @@ void TestCommunication(const std::string& host, u16 port, std::size_t pad_index,
         };
         };
         Socket socket{host, port, pad_index, client_id, std::move(callback)};
         Socket socket{host, port, pad_index, client_id, std::move(callback)};
         std::thread worker_thread{SocketLoop, &socket};
         std::thread worker_thread{SocketLoop, &socket};
-        const bool result = success_event.WaitFor(std::chrono::seconds(8));
+        const bool result = success_event.WaitFor(std::chrono::seconds(5));
         socket.Stop();
         socket.Stop();
         worker_thread.join();
         worker_thread.join();
         if (result) {
         if (result) {