// It"s okay if a complete assignment socket dies, but wait for the
// world to clean up the resource
return
elif agent.state.status == AssignState.STATUS_ASSIGNED:
// mark the agent in the assigned state as disconnected, the task
// spawn thread is responsible for cleanup
agent.state.status = AssignState.STATUS_DISCONNECT
After Change
"Worker {} disconnected from {} in status {}".format(
worker_id,
agent.conversation_id,
agent.get_status()
)
)
if agent.get_status() == AssignState.STATUS_NONE: