mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
dumper: prevent writing to socket after 10 failed attampts
This commit is contained in:
parent
650ac13670
commit
b61c081b9e
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ int Dumper::closeSocket()
|
|||
|
||||
void Dumper::writeDataBinary(unsigned len, double *yData, double *xData){
|
||||
|
||||
if (warningCounter > 10)
|
||||
return;
|
||||
|
||||
if (yData == nullptr)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue