]> git.stg.codes - stg.git/blobdiff - projects/sgauth/main.cpp
Removed unused stuff.
[stg.git] / projects / sgauth / main.cpp
index 96c58203ec78c5d5463cae2a52eada20232ef723..d0ab3c35b135b455f0fabf4b6598c0c8ed3bfa7d 100644 (file)
@@ -200,7 +200,7 @@ if (settings.GetDaemon())
         }
     }
 
-clnp = new IA_CLIENT_PROT(settings.GetServerName(), settings.GetServerPort(), settings.GetLocalPort());
+clnp = new IA_CLIENT_PROT(settings.GetServerName(), settings.GetServerPort(), settings.GetLocalName(), settings.GetLocalPort());
 
 if (!settings.GetNoWeb())
     {
@@ -239,7 +239,8 @@ clnp->Connect();
 
 while (1)
     {
-    usleep(200000);
+    struct timespec ts = {0, 200000000};
+    nanosleep(&ts, NULL);
 
     char state[20];