Skip to content

Commit e052e63

Browse files
committed
be more defensive
1 parent 96ff007 commit e052e63

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/ferrum/browser.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,11 @@ def restart
211211
def quit
212212
return unless @client
213213

214-
215-
command('Browser.close')
214+
begin
215+
command('Browser.close')
216+
rescue
217+
end
218+
216219
contexts.close_connections
217220

218221
@client.close

0 commit comments

Comments
 (0)