Skip to content

Commit dc0a613

Browse files
authored
Don't cleanup datadir (#322)
1 parent b090cc6 commit dc0a613

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

webdev/lib/src/serve/chrome.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,20 @@ var _currentCompleter = Completer<Chrome>();
3333
class Chrome {
3434
final int debugPort;
3535
final Process _process;
36-
final Directory _dataDir;
3736

3837
final ChromeConnection chromeConnection;
3938

4039
Chrome._(
4140
this.debugPort,
4241
this.chromeConnection, {
4342
Process process,
44-
Directory dataDir,
45-
}) : _process = process,
46-
_dataDir = dataDir;
43+
}) : _process = process;
4744

4845
Future<void> close() async {
4946
if (_currentCompleter.isCompleted) _currentCompleter = Completer<Chrome>();
5047
chromeConnection.close();
5148
_process?.kill();
5249
await _process?.exitCode;
53-
await _dataDir?.delete(recursive: true);
5450
}
5551

5652
/// Connects to an instance of Chrome with an open debug port.
@@ -97,7 +93,6 @@ class Chrome {
9793
port,
9894
ChromeConnection('localhost', port),
9995
process: process,
100-
dataDir: dataDir,
10196
));
10297
}
10398

0 commit comments

Comments
 (0)