Skip to content

Commit 8b87bf4

Browse files
authored
Only check version in main process (#1285)
1 parent 0806d73 commit 8b87bf4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

webknossos/webknossos/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@
3535
from .version import __version__ as current_version
3636

3737
if not current_version == "0.0.0":
38-
# Schedule the version check to run non-blocking in a background thread
39-
check_version_in_background(current_version)
38+
import multiprocessing
39+
40+
if multiprocessing.parent_process() is None:
41+
# Schedule the version check to run non-blocking in a background thread
42+
check_version_in_background(current_version)

0 commit comments

Comments
 (0)