Chromium Code Reviews| Index: runtime/bin/process_impl.dart |
| diff --git a/runtime/bin/process_impl.dart b/runtime/bin/process_impl.dart |
| index 86666700ec3b5b44d964b86d3a4bbdcfdbe947a4..dc1f94524fc08f3e1187abd2d6e3621e7b108425 100644 |
| --- a/runtime/bin/process_impl.dart |
| +++ b/runtime/bin/process_impl.dart |
| @@ -151,8 +151,10 @@ class _Process implements Process { |
| } |
| void kill() { |
| - if (_closed && _pid === null && _errorHandler !== null) { |
| - _errorHandler(new ProcessException("Process closed")); |
| + if (_closed && _pid === null) { |
|
Søren Gjesse
2012/01/06 13:43:20
So we cannot ever have !_closed and _pid == null?
|
| + if (_errorHandler !== null) { |
| + _errorHandler(new ProcessException("Process closed")); |
| + } |
| return; |
| } |
| if (_killed) { |