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)