X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e91447ca4738069384ece27f3c3dae6c7a5b31e..32cdc45397d8c0a24735f84e1dcf83bba1980f2d:/tests/test.cpp diff --git a/tests/test.cpp b/tests/test.cpp index 067af9edd1..eeefa10849 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -28,14 +28,16 @@ #ifdef __VISUALC__ #pragma warning(disable:4100) #endif + #include -#ifdef __VISUALC__ - #pragma warning(default:4100) -#endif #include #include #include #include + +#ifdef __VISUALC__ + #pragma warning(default:4100) +#endif #include "wx/afterstd.h" #include "wx/cmdline.h" @@ -336,6 +338,7 @@ extern bool IsNetworkAvailable() } wxSocketClient sock; + sock.SetTimeout(10); // 10 secs bool online = sock.Connect(addr); wxSocketBase::Shutdown();