Project

General

Profile

« Previous | Next » 

Revision c2b04ad9

Added by Marc Dequènes about 14 years ago

  • ID c2b04ad9be5940acfbc67f73321a6e426bcfa248

[fix] corrected silly mistakes in Botnet DSL

View differences:

lib/cyborghood/cyborg/botnet_dsl.rb
when :decline
# TODO: remove this case ???
when :error
@final_reply[:error][key] = reply[:exception]
@final_reply[:errors][key] = reply[:exception]
end
check_finished
......
# process reply in the same thread, but with a new DSL Thread context
cb = @calls_reply.values.index(:error) ? @error_cb : @success_cb
Thread.run_dsl(@conversation_dsl, @conversation, @name, @final_reply, &cb)
Thread.run_dsl(@conversation_dsl, @conversation, @name, @final_reply, &cb) if cb
end
end

Also available in: Unified diff