Skip to content

Commit 681354d

Browse files
authored
Merge pull request #104 from ouvrages/remove-temporary-directory-2
Fix temporary user-data-dir not removed after stop
2 parents 1a33d43 + 7c83d18 commit 681354d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ferrum/browser/process.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ def initialize(options)
6464
return
6565
end
6666

67-
@user_data_dir = nil
6867
@logger = options[:logger]
6968
@process_timeout = options.fetch(:process_timeout, PROCESS_TIMEOUT)
7069

7170
tmpdir = Dir.mktmpdir
7271
ObjectSpace.define_finalizer(self, self.class.directory_remover(tmpdir))
72+
@user_data_dir = tmpdir
7373
@command = Command.build(options, tmpdir)
7474
end
7575

0 commit comments

Comments
 (0)