File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
java/server/src/org/openqa/selenium/remote/server Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 44
44
import java .io .InputStream ;
45
45
import java .io .InputStreamReader ;
46
46
import java .io .Reader ;
47
- import java .lang .reflect .Type ;
48
47
import java .nio .file .Files ;
49
48
import java .nio .file .Path ;
50
49
import java .util .Map ;
@@ -212,20 +211,16 @@ public Set<SessionId> getSessions() {
212
211
213
212
private class ActualSession implements Session {
214
213
215
- private final TemporaryFilesystem tempFs ;
216
214
private final KnownElements knownElements ;
217
215
218
216
private ActualSession () throws IOException {
219
217
Path tempDirectory = Files .createTempDirectory ("session" );
220
- tempFs = TemporaryFilesystem .getTmpFsBasedOn (tempDirectory .toFile ());
221
218
knownElements = new KnownElements ();
222
219
}
223
220
224
221
@ Override
225
222
public void close () {
226
223
driver .quit ();
227
-
228
- tempFs .deleteBaseDir ();
229
224
}
230
225
231
226
@ Override
@@ -260,7 +255,7 @@ public SessionId getSessionId() {
260
255
261
256
@ Override
262
257
public TemporaryFilesystem getTemporaryFileSystem () {
263
- return tempFs ;
258
+ return getFileSystem () ;
264
259
}
265
260
}
266
261
}
You can’t perform that action at this time.
0 commit comments