IPC attempted thread fix

This commit is contained in:
itdominator 2023-02-04 23:38:44 -06:00
parent 639f14df5e
commit 6e3bf63465

View File

@ -1,9 +1,11 @@
# Python imports
import os, threading, time
import os
import time
from multiprocessing.connection import Client
from multiprocessing.connection import Listener
# Lib imports
from gi.repository import GLib
# Application imports
@ -56,7 +58,7 @@ class IPCServer:
while True:
conn = listener.accept()
start_time = time.perf_counter()
self._handle_ipc_message(conn, start_time)
GLib.idle_add(self._handle_ipc_message, *(conn, start_time,))
listener.close()