Skip to content

Commit bee3f20

Browse files
committed
Adding sleep to ensure AlertListener started OK.
1 parent 97903cf commit bee3f20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/plex-bootstraptest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,14 @@ def alert_callback(data):
124124
start = time.time()
125125
bar = tqdm(desc='Scanning section ' + section['name'], total=expected_media_count)
126126
notifier = server.startAlertListener(alert_callback)
127+
time.sleep(3)
127128
add_library_section(server, section)
128129
while bar.n < bar.total:
129130
if runtime >= 120:
130131
print('Metadata scan taking too long, but will continue anyway..')
131132
break
132133
time.sleep(3)
133-
runtime = time.time() - start
134+
runtime = int(time.time() - start)
134135
bar.close()
135136
notifier.stop()
136137

0 commit comments

Comments
 (0)