We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ac2d14 + 95bfc58 commit 4f156eeCopy full SHA for 4f156ee
ChangeLog.md
@@ -1,3 +1,11 @@
1
+### 3.0.1 / 2020-06-29
2
+
3
+* Fix client dispose
4
5
+### 3.0.0 / 2020-06-28
6
7
+* Extract schema to separate gem
8
9
### 2.1.0 / 2019-10-18
10
11
* Support tdlib 1.5
lib/tdlib/client.rb
@@ -167,9 +167,10 @@ def ready?
167
private
168
169
def handle_update(update)
170
- return unless update.is_a?(TD::Types::AuthorizationState::Closed)
+ return unless update.is_a?(TD::Types::Update::AuthorizationState) && update.authorization_state.is_a?(TD::Types::AuthorizationState::Closed)
171
@alive = false
172
@ready = false
173
+ sleep 0.001
174
TD::Api.client_destroy(@td_client)
175
throw(:client_closed)
176
end
0 commit comments