File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ### 3.0.2 / 2020-06-29
2+
3+ * Rescue exceptions in update manager thread
4+
15### 3.0.1 / 2020-06-29
26
37* Fix client dispose
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def add_handler(handler)
1515
1616 def run ( callback : nil )
1717 Thread . start do
18- catch ( :client_closed ) { loop { handle_update ( callback : callback ) } }
18+ catch ( :client_closed ) { loop { handle_update ( callback : callback ) ; sleep 0.001 } }
1919 @mutex . synchronize { @handlers = [ ] }
2020 end
2121 end
@@ -34,6 +34,8 @@ def handle_update(callback: nil)
3434
3535 match_handlers! ( update , extra ) . each { |h | h . async . run ( update ) }
3636 end
37+ rescue StandardError => e
38+ warn ( "Uncaught exception in update manager: #{ e . message } " )
3739 end
3840
3941 def match_handlers! ( update , extra )
Original file line number Diff line number Diff line change 11module TD
22 # tdlib-ruby version
3- VERSION = "3.0.1 "
3+ VERSION = "3.0.2 "
44end
You can’t perform that action at this time.
0 commit comments