From c5cd3ec9452432bc2043d7da84af6c0c2110d7e5 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Sun, 10 Sep 2017 16:57:57 -0400 Subject: [PATCH] Update notify_delay.py --- notify/notify_delay.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/notify/notify_delay.py b/notify/notify_delay.py index a4e7521..db3c665 100644 --- a/notify/notify_delay.py +++ b/notify/notify_delay.py @@ -97,12 +97,11 @@ if __name__ == '__main__': p = parser.parse_args() - cc_total = get_get_activity().count(p.user) - x = 0 while x < TIMEOUT and x is not None: # check if user still has concurrent streams print('Checking concurrent stream count.') + cc_total = get_get_activity().count(p.user) if cc_total >= CONCURRENT_TOTAL: print('{p.user} still has {total} concurrent streams.'.format(p=p, total=cc_total)) sleep(INTERVAL)