Skip to content
Snippets Groups Projects
Commit cb31ec70 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

remove initial sleep() before connect

parent 59770592
No related branches found
No related tags found
No related merge requests found
...@@ -247,9 +247,6 @@ class GmshClient : public GmshSocket { ...@@ -247,9 +247,6 @@ class GmshClient : public GmshSocket {
~GmshClient(){} ~GmshClient(){}
int Connect(const char *sockname) int Connect(const char *sockname)
{ {
// slight delay to make sure that the socket is bound by the
// server before we attempt to connect to it
_Sleep(10);
if(strstr(sockname, "/") || strstr(sockname, "\\") || !strstr(sockname, ":")){ if(strstr(sockname, "/") || strstr(sockname, "\\") || !strstr(sockname, ":")){
#if !defined(WIN32) || defined(__CYGWIN__) #if !defined(WIN32) || defined(__CYGWIN__)
// UNIX socket (testing ":" is not enough with Windows paths) // UNIX socket (testing ":" is not enough with Windows paths)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment