From 9cadf5dc500e93b7aff1b25d0aae755e89154a19 Mon Sep 17 00:00:00 2001 From: Alexander Emelianov Date: Mon, 13 May 2019 14:56:36 +0500 Subject: [PATCH] Remove useless ->stop() lines --- src/ModbusIP_ESP8266.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ModbusIP_ESP8266.cpp b/src/ModbusIP_ESP8266.cpp index 75fe411..7b633bb 100644 --- a/src/ModbusIP_ESP8266.cpp +++ b/src/ModbusIP_ESP8266.cpp @@ -408,7 +408,6 @@ void ModbusIP::autoConnect(bool enabled) { bool ModbusIP::disconnect(IPAddress ip) { int8_t p = getSlave(ip); - //if (p != -1) client[p]->stop(); if (p != -1) { delete client[p]; client[p] = nullptr; @@ -425,7 +424,6 @@ ModbusIP::~ModbusIP() { dropTransactions(); cleanup(); for (uint8_t i = 0; i < MODBUSIP_MAX_CLIENTS; i++) { - //client[i]->stop(); delete client[i]; client[i] = nullptr; }