From 84c00f45075f57e9416f91cf27e4066217119a2f Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Mon, 3 Apr 2017 23:36:01 +0300 Subject: [PATCH] Multiprocessing should not be used --- pupy/network/lib/streams/PupyAsyncStream.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pupy/network/lib/streams/PupyAsyncStream.py b/pupy/network/lib/streams/PupyAsyncStream.py index 7bc64bbd..4f3d3d5a 100755 --- a/pupy/network/lib/streams/PupyAsyncStream.py +++ b/pupy/network/lib/streams/PupyAsyncStream.py @@ -10,17 +10,11 @@ from ..buffer import Buffer import sys, socket, time, errno, logging, traceback, string, random from rpyc.lib.compat import select, select_error, BYTES_LITERAL, get_exc_errno, maxint from PupySocketStream import addGetPeer -try: - import multiprocessing - Process=multiprocessing.Process - Lock=multiprocessing.Lock - Event=multiprocessing.Event -except ImportError: #multiprocessing not available on android ? - import threading - Process=threading.Thread - Lock=threading.Lock - Event=threading.Event +import threading +Process=threading.Thread +Lock=threading.Lock +Event=threading.Event class addGetPeer(object): """ add some functions needed by some obfsproxy transports"""