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