diff --git a/pox/openflow/of_01.py b/pox/openflow/of_01.py index 3fe5f5f16..01ceabff8 100644 --- a/pox/openflow/of_01.py +++ b/pox/openflow/of_01.py @@ -835,12 +835,19 @@ def __init__ (self, port = 6633, address = '0.0.0.0'): Task.__init__(self) self.port = int(port) self.address = address + self.started = False core.addListener(pox.core.GoingUpEvent, self._handle_GoingUpEvent) def _handle_GoingUpEvent (self, event): self.start() + def start (self): + if self.started: + return + self.started = True + return super(OpenFlow_01_Task,self).start() + def run (self): # List of open sockets/connections to select on sockets = []