1
0
Fork 0
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:
Conrad Irwin 2013-03-24 23:01:44 -07:00
parent d24e95f7fd
commit 7213f1c5da

View file

@ -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.