File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2019-04-06 10:51:06 -0400 using RuboCop version 0.61.1.
3+ # on 2019-04-06 18:44:21 -0400 using RuboCop version 0.61.1.
44# The point is for the user to remove these configuration records
55# one by one as the offenses are removed from the code base.
66# Note that changes in the inspected code, or installation of new
Original file line number Diff line number Diff line change @@ -15,22 +15,22 @@ class Socket < Slack::RealTime::Socket
1515
1616 def start_async ( client )
1717 @reactor = ::Async ::Reactor . new
18-
18+
1919 Thread . new do
2020 @reactor . run do |task |
2121 if client . run_ping?
2222 task . async do |subtask |
23- subtask . annotate " client keep-alive"
24-
25- while true
23+ subtask . annotate ' client keep-alive'
24+
25+ loop do
2626 subtask . sleep client . websocket_ping
2727 client . run_ping!
2828 end
2929 end
3030 end
31-
31+
3232 task . async do |subtask |
33- subtask . annotate " client run-loop"
33+ subtask . annotate ' client run-loop'
3434 client . run_loop
3535 end
3636 end
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def connect!
4040
4141 def disconnect!
4242 @driver . close
43- self . close
43+ close
4444 end
4545
4646 def connected?
You can’t perform that action at this time.
0 commit comments