Skip to content

Commit 9a21105

Browse files
committed
Rename confusing ThreadClient#is_management method
1 parent ab2308d commit 9a21105

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/debug/session.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ def activate on_fork: false
159159
# Thread management
160160
setup_threads
161161
thc = get_thread_client Thread.current
162-
thc.is_management
162+
thc.make_management
163163

164164
if @ui.respond_to?(:reader_thread) && thc = get_thread_client(@ui.reader_thread)
165-
thc.is_management
165+
thc.make_management
166166
end
167167

168168
@tp_thread_begin = TracePoint.new(:thread_begin) do |tp|
@@ -1028,7 +1028,7 @@ def repl_open_setup
10281028
@tp_thread_begin.disable
10291029
@ui.activate self
10301030
if @ui.respond_to?(:reader_thread) && thc = get_thread_client(@ui.reader_thread)
1031-
thc.is_management
1031+
thc.make_management
10321032
end
10331033
@tp_thread_begin.enable
10341034
end

lib/debug/thread_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def management?
100100
@is_management
101101
end
102102

103-
def is_management
103+
def make_management
104104
@is_management = true
105105
end
106106

0 commit comments

Comments
 (0)