Project

General

Profile

« Previous | Next » 

Revision f292535b

Added by Marc Dequènes over 13 years ago

  • ID f292535b6365df76f1edd34bb6aeeb8e6f414614

[fix] ensure ask_to_stop() waits gracefully for conversations to finish while stop() just stopp at once

View differences:

lib/cyborghood/cyborg/conversation.rb
@comm_logic_block.call self unless @comm_logic_block.nil?
end
def set_comm_stop
def set_comm_stop(peer_left = false)
@comm_stop = true
yield if block_given?
close_connection_after_writing
peer_left ? close_connection : close_connection_after_writing
end
def set_error_status(fatal = false)

Also available in: Unified diff