lib/chatrix/client.rb
# Stops syncing against the homeserver.
Stops syncing against the homeserver.
Stops syncing against the homeserver .
def stop_syncing
      return unless @sync_thread.is_a? Thread
      @sync_thread.exit
      @sync_thread.join
    rescue => e
      broadcast(:stop_error, e)
    ensure
      @sync_thread = nil
    end
def stop_syncing return unless @sync_thread . is_a? Thread @sync_thread . exit @sync_thread . join rescue => e broadcast ( :stop_error , e ) ensure @sync_thread = nil end
Stops syncing against the homeserver.
Stops syncing against the homeserver .