diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2009-11-22 19:03:32 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2009-11-22 19:03:32 +0200 |
commit | 921a2dd2b4b6ebe7850db3eefcd586a96408c713 (patch) | |
tree | 3fc7d002ab274f78d4fa1245c4f698b0c7daacb3 | |
parent | bb0985853bb8c59ad69ac9f705aa6235f031b676 (diff) |
modified: watrack_mpd/main.c
-rwxr-xr-x | watrack_mpd/main.c | 4 |
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();
}
|