summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2009-11-22 19:03:32 +0200
committerGluzskiy Alexandr <sss123next@list.ru>2009-11-22 19:03:32 +0200
commit921a2dd2b4b6ebe7850db3eefcd586a96408c713 (patch)
tree3fc7d002ab274f78d4fa1245c4f698b0c7daacb3
parentbb0985853bb8c59ad69ac9f705aa6235f031b676 (diff)
modified: watrack_mpd/main.c
-rwxr-xr-xwatrack_mpd/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/watrack_mpd/main.c b/watrack_mpd/main.c
index 8a39b18..eb2e41d 100755
--- a/watrack_mpd/main.c
+++ b/watrack_mpd/main.c
@@ -148,7 +148,7 @@ void RegisterPlayer()
void ReStart();
int Parser()
{
- NETLIBPACKETRECVER nlpr = {0};
+ static NETLIBPACKETRECVER nlpr = {0};
char *ptr;
char tmp[128];
int i;
@@ -366,7 +366,6 @@ void Start()
nloc.timeout = 5;
nloc.wPort = gbPort;
Connected = FALSE;
- Sleep(1000);
ghConnection = NetLib_CreateConnection(ghNetlibUser, &nloc);
if(ghConnection)
ghPacketReciever = (HANDLE)CallService(MS_NETLIB_CREATEPACKETRECVER,(WPARAM)ghConnection,2048);
@@ -379,6 +378,7 @@ void Stop()
void ReStart()
{
Stop();
+ Sleep(1500);
Start();
}