...
This commit is contained in:
parent
aef29d7484
commit
b33ee0bdf4
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue