From 4fd7b56734ddcd1a26c66d4699851d696fd8ed61 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 27 Nov 2012 07:51:23 -0500 Subject: [PATCH] get the garbage collector under control --- lib/persistent_selenium/browser.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/persistent_selenium/browser.rb b/lib/persistent_selenium/browser.rb index 1c68194..e89aeda 100644 --- a/lib/persistent_selenium/browser.rb +++ b/lib/persistent_selenium/browser.rb @@ -25,6 +25,8 @@ module PersistentSelenium end def set_app_host(host) + load_splash_page + @app_host = host end @@ -42,6 +44,10 @@ module PersistentSelenium # instead. end end + + GC.enable + GC.start + GC.disable end def starting_page