Remove debug code
This commit is contained in:
parent
0427ff6de9
commit
49b5292415
1 changed files with 0 additions and 4 deletions
|
@ -299,26 +299,22 @@ std::wstring Client::sendToService(const Message &msg) {
|
||||||
Socket s;
|
Socket s;
|
||||||
s.connect(L"TelldusClient");
|
s.connect(L"TelldusClient");
|
||||||
if (!s.isConnected()) { //Connection failed
|
if (!s.isConnected()) { //Connection failed
|
||||||
printf("Connection failed\n\r");
|
|
||||||
msleep(500);
|
msleep(500);
|
||||||
continue; //retry
|
continue; //retry
|
||||||
}
|
}
|
||||||
s.write(msg.data());
|
s.write(msg.data());
|
||||||
if (!s.isConnected()) { //Connection failed sometime during operation... (better check here, instead of 5 seconds timeout later)
|
if (!s.isConnected()) { //Connection failed sometime during operation... (better check here, instead of 5 seconds timeout later)
|
||||||
printf("Connection failed after write\n\r");
|
|
||||||
msleep(500);
|
msleep(500);
|
||||||
continue; //retry
|
continue; //retry
|
||||||
}
|
}
|
||||||
readData = s.read(8000); //TODO changed to 10000 from 5000, how much does this do...?
|
readData = s.read(8000); //TODO changed to 10000 from 5000, how much does this do...?
|
||||||
if(readData == L""){
|
if(readData == L""){
|
||||||
printf("Readdata nothing\n\r");
|
|
||||||
msleep(500);
|
msleep(500);
|
||||||
continue; //TODO can we be really sure it SHOULD be anything?
|
continue; //TODO can we be really sure it SHOULD be anything?
|
||||||
//TODO perhaps break here instead?
|
//TODO perhaps break here instead?
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!s.isConnected()) { //Connection failed sometime during operation...
|
if (!s.isConnected()) { //Connection failed sometime during operation...
|
||||||
printf("Connection failed in the end\n\r");
|
|
||||||
msleep(500);
|
msleep(500);
|
||||||
continue; //retry
|
continue; //retry
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue