mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Don't try to wait for StreamCapturer that was never started
This commit is contained in:
parent
7d98362972
commit
4bcd7bd44d
@ -31,7 +31,6 @@ import glob
|
||||
from io import BytesIO
|
||||
import os
|
||||
import os.path as path
|
||||
import re
|
||||
from select import select
|
||||
import sys
|
||||
from threading import Thread, Lock, Event
|
||||
@ -436,6 +435,7 @@ class SubprocessStreamCapturePlugin(Plugin):
|
||||
formatError = formatFailure
|
||||
|
||||
def finalize(self, result):
|
||||
if self.stream_capturer.started:
|
||||
self.stream_capturer.stop.set()
|
||||
self.stream_capturer.join()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user