From 55f0462946a7e4050050d1572c619780a8e81c51 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Wed, 7 Nov 2012 23:21:08 -0500 Subject: [PATCH] removed useless line of code --- python_apps/media-monitor2/media/saas/thread.py | 2 ++ python_apps/media-monitor2/mm2.py | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python_apps/media-monitor2/media/saas/thread.py b/python_apps/media-monitor2/media/saas/thread.py index f2e5ae28d..0b4ae079e 100644 --- a/python_apps/media-monitor2/media/saas/thread.py +++ b/python_apps/media-monitor2/media/saas/thread.py @@ -21,3 +21,5 @@ class InstanceInheritingThread(threading.Thread, HasUser): def user(): try: return threading.current_thread().user() except AttributeError: raise UserlessThread() + +def apc(): return user().api_client diff --git a/python_apps/media-monitor2/mm2.py b/python_apps/media-monitor2/mm2.py index 99d16f9f7..b246a9491 100644 --- a/python_apps/media-monitor2/mm2.py +++ b/python_apps/media-monitor2/mm2.py @@ -124,8 +124,6 @@ def main(global_config, api_client_config, log_config, airtime_receiver.new_watch({ 'directory':watch_dir }, restart=True) else: log.info("Failed to add watch on %s" % str(watch_dir)) - bs = Bootstrapper( db=sdb, watch_signal='watch' ) - ed = EventDrainer(airtime_notifier.connection, interval=float(config['rmq_event_wait']))