Skip to content
Snippets Groups Projects
Verified Commit ee296f2a authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

client: Fix missing MatrixTimeoutError require

parent d2b1270a
No related branches found
No related tags found
No related merge requests found
Pipeline #2582 failed
......@@ -17,6 +17,7 @@ module MatrixSdk
autoload :MatrixError, 'matrix_sdk/errors'
autoload :MatrixRequestError, 'matrix_sdk/errors'
autoload :MatrixConnectionError, 'matrix_sdk/errors'
autoload :MatrixTimeoutError, 'matrix_sdk/errors'
autoload :MatrixUnexpectedResponseError, 'matrix_sdk/errors'
module Protocols
......
......@@ -278,7 +278,7 @@ module MatrixSdk
data = loop do
begin
break api.sync extra_params.merge(params)
rescue MatrixTimeoutError => ex
rescue MatrixSdk::MatrixTimeoutError => ex
raise ex if (attempts += 1) > params.fetch(:allow_sync_retry, 0)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment