This commit is contained in:
Carl-Benedikt Krüger 2011-08-03 13:43:50 +02:00
parent aef29d7484
commit b33ee0bdf4

View file

@ -313,7 +313,7 @@ void cli_on_disc(ClientEventArgs*e )
void* client_task(void* e)
{
int err = 0;
int err = -2;
Client cli;
char netbuffer[256];
kprintf("created client");
@ -324,9 +324,10 @@ void* client_task(void* e)
SHELLDEBUGPRINTF("Client is ready...\n");
while (cli_ConnectTo(&cli,"192.168.0.1",5555,0) != 0)
while (err)
{
SHELLDEBUGPRINTF("retry connect\n");
SHELLDEBUGPRINTF("retry connect err = %d\n",err);
err = cli_ConnectTo(&cli,"192.168.0.1",5555,0);
}
SHELLDEBUGPRINTF("connected\n");
sleep(1);