From 28ed064318e38de4dc9a731bf996c2b7731112ae Mon Sep 17 00:00:00 2001 From: sambabug Date: Tue, 1 Oct 2019 12:37:22 +0530 Subject: [PATCH] Update agent.py --- applications/iiit/VolttronBridge/volttronbridge/agent.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/applications/iiit/VolttronBridge/volttronbridge/agent.py b/applications/iiit/VolttronBridge/volttronbridge/agent.py index c073f0b57c..3de8d27e98 100644 --- a/applications/iiit/VolttronBridge/volttronbridge/agent.py +++ b/applications/iiit/VolttronBridge/volttronbridge/agent.py @@ -303,9 +303,7 @@ def onNewEnergyDemand(self, peer, sender, bus, topic, headers, message): #check for upstream connection, if not retry once _log.debug('check us connection...') - #ping us to confirm - ping_success = self.do_rpc(url_root, 'rpc_ping') - if ping_success and not self._usConnected: + if not self._usConnected: _log.debug('not connected, Trying to register once...') self._usConnected = self._registerToUsBridge(url_root,\ self._discovery_address,\