mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Don't repeat if initial_session_setup fails
This commit is contained in:
parent
d24e95f7fd
commit
7213f1c5da
1 changed files with 2 additions and 3 deletions
|
@ -114,7 +114,8 @@ class Pry
|
|||
# loading history.
|
||||
def self.initial_session_setup
|
||||
|
||||
return if !initial_session?
|
||||
return unless initial_session?
|
||||
@initial_session = false
|
||||
|
||||
# note these have to be loaded here rather than in pry_instance as
|
||||
# we only want them loaded once per entire Pry lifetime.
|
||||
|
@ -123,8 +124,6 @@ class Pry
|
|||
load_requires if Pry.config.should_load_requires
|
||||
load_history if Pry.config.history.should_load
|
||||
load_traps if Pry.config.should_trap_interrupts
|
||||
|
||||
@initial_session = false
|
||||
end
|
||||
|
||||
# Start a Pry REPL.
|
||||
|
|
Loading…
Reference in a new issue