Spaces:
Paused
Paused
Update engine.py
Browse files
engine.py
CHANGED
|
@@ -466,7 +466,7 @@ def process_and_queue(filepath, target_u_id, start_chunk, end_chunk, chunk_size,
|
|
| 466 |
def continuous_peer_pulse(u_id, info_hash, trackers, handle, peer_id):
|
| 467 |
"""Silently tops off the peer list every 3 minutes until the download finishes."""
|
| 468 |
while True:
|
| 469 |
-
time.sleep(
|
| 470 |
try:
|
| 471 |
# Stop pulsing if the download is finished, killed, or stalled
|
| 472 |
if u_id not in active_vaults or handle.status().state in [lt.torrent_status.seeding, lt.torrent_status.finished]:
|
|
|
|
| 466 |
def continuous_peer_pulse(u_id, info_hash, trackers, handle, peer_id):
|
| 467 |
"""Silently tops off the peer list every 3 minutes until the download finishes."""
|
| 468 |
while True:
|
| 469 |
+
time.sleep(500) # Wait 3 minutes between pulses
|
| 470 |
try:
|
| 471 |
# Stop pulsing if the download is finished, killed, or stalled
|
| 472 |
if u_id not in active_vaults or handle.status().state in [lt.torrent_status.seeding, lt.torrent_status.finished]:
|