X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=blobdiff_plain;f=transports%2Fstratum_http.py;h=a7ef49d40bcb3b69d634bac3bad67f21e174d75e;hp=7a8ece22ba4ef84ea1231d4b1cdfe2bc5ee36ccf;hb=5ee042c213baa4ae8a0f538de64644ae9abe7b36;hpb=a92c552cb893495de62a2c594f3aac34ee643bb0 diff --git a/transports/stratum_http.py b/transports/stratum_http.py index 7a8ece2..a7ef49d 100644 --- a/transports/stratum_http.py +++ b/transports/stratum_http.py @@ -341,9 +341,9 @@ class HttpSession(Session): self.pending_responses.append(response) class HttpServer(threading.Thread): - def __init__(self, shared, _processor, host, port): - self.shared = shared - self.processor = _processor + def __init__(self, dispatcher, host, port): + self.shared = dispatcher.shared + self.dispatcher = dispatcher.request_dispatcher threading.Thread.__init__(self) self.daemon = True self.host = host @@ -370,7 +370,7 @@ class HttpServer(threading.Thread): #print session, request session = self.server.sessions.get(session_id) if session: - self.processor.process(session, request) + self.dispatcher.process(session, request) def do_stop(self, session, request): self.shared.stop()