From 7b1f17c0626964673ec5c6db9950cdb602cfe500 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 21 Oct 2012 20:02:06 +0200 Subject: [PATCH] Limit threads per event --- couchpotato/core/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/event.py b/couchpotato/core/event.py index 3a5b9009..99ca6f50 100644 --- a/couchpotato/core/event.py +++ b/couchpotato/core/event.py @@ -19,7 +19,7 @@ def addEvent(name, handler, priority = 100): if events.get(name): e = events[name] else: - e = events[name] = Event(name = name, threads = 20, exc_info = True, traceback = True, lock = threading.RLock()) + e = events[name] = Event(name = name, threads = 10, exc_info = True, traceback = True, lock = threading.RLock()) def createHandle(*args, **kwargs):