Stefan Schuermans commited on 2020-05-27 18:02:04
Showing 1 changed files, with 2 additions and 1 deletions.
... | ... |
@@ -245,4 +245,5 @@ class Processes(uproctrace.parse.Visitor): |
245 | 245 |
proc.setEnd(proc_end) |
246 | 246 |
proc_end.setProcess(proc) |
247 | 247 |
# remove process from dict of current processes (it ended) |
248 |
- self._current_processes[proc_end.pid] = None |
|
248 |
+ if proc_end.pid in self._current_processes: |
|
249 |
+ del self._current_processes[proc_end.pid] |
|
249 | 250 |