error counting, fix

This commit is contained in:
Wolfgang Hottgenroth 2020-09-07 19:50:50 +02:00
parent c9acb92466
commit 744f1b2108
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -58,9 +58,9 @@ public class MbusScheduledQuerier extends Thread {
device.parse(frame);
logger.info("Got: " + device.toString());
device.incSuccessCnt();
this.queue.add(device.getDataObject());
device.incSuccessCnt();
successCnt++;
} catch (IOException e) {
device.incErrorCnt();