Skip to content

Commit

Permalink
fixed bug in _da_server_input_processor()
Browse files Browse the repository at this point in the history
  • Loading branch information
wbollenbacher committed Sep 17, 2012
1 parent c5a5343 commit 38bfde3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ion/agents/instrument/instrument_agent.py
Expand Up @@ -54,6 +54,8 @@
from mi.core.instrument.instrument_driver import DriverProtocolState
from mi.core.instrument.instrument_driver import DriverParameter

from interface.objects import AgentCommand

class InstrumentAgentState():
UNINITIALIZED='xxx'

Expand Down Expand Up @@ -1020,7 +1022,8 @@ def _da_server_input_processor(self, data):
log.error("InstAgent.telnet_input_processor: got unexpected integer " + str(data))
return
log.warning("InstAgent.telnet_input_processor: connection closed %s" %self._da_session_close_reason)
self.execute_agent(ResourceAgentEvent.GO_COMMAND)
cmd = AgentCommand(command=ResourceAgentEvent.GO_COMMAND)
self.execute_agent(command=cmd)
return
log.debug("InstAgent.telnetInputProcessor: data = <" + str(data) + "> len=" + str(len(data)))
# send the data to the driver
Expand Down

0 comments on commit 38bfde3

Please sign in to comment.