Philipp Hörist pushed to branch master at gajim / gajim


Commits:
04d2d849 by Philipp Hörist at 2025-12-21T10:32:24+01:00
fix: Use spawn context for multiprocessing Manager

Otherwise the default "fork" is used, which generates a deprecation
warning.

- - - - -


1 changed file:

- gajim/common/file_transfer_manager.py


Changes:

=====================================
gajim/common/file_transfer_manager.py
=====================================
@@ -9,7 +9,7 @@
 from typing import overload
 
 import logging
-import multiprocessing as mp
+import multiprocessing
 import queue
 import threading
 from collections import defaultdict
@@ -44,7 +44,8 @@
 class FileTransferManager:
     def __init__(self) -> None:
         self._transfers: dict[str, FileTransfer] = {}
-        self._manager = mp.Manager()
+        mp_context = multiprocessing.get_context("spawn")
+        self._manager = mp_context.Manager()
         self._queue: QueueT = self._manager.Queue()
         GLib.timeout_add(100, self._poll_queue)
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/04d2d849b1a9dce012adbf33825e80584929ce5f

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/04d2d849b1a9dce012adbf33825e80584929ce5f
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to