Method: Roby::Application#stop_rest_interface

Defined in:
lib/roby/app.rb

#stop_rest_interface(join: false) ⇒ Object

Stops a running REST interface



2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
# File 'lib/roby/app.rb', line 2325

def stop_rest_interface(join: false)
    if @rest_interface
        # In case we're shutting down while starting up,
        # we must synchronize with the start to ensure that
        # EventMachine will be properly stopped
        @rest_interface.wait_start
        @rest_interface.stop
        @rest_interface.join if join
    end
end