{"action":"created","issue":{"url":"https://api.github.com/repos/tatsuhiro-t/aria2/issues/507","labels_url":"https://api.github.com/repos/tatsuhiro-t/aria2/issues/507/labels{/name}","comments_url":"https://api.github.com/repos/tatsuhiro-t/aria2/issues/507/comments","events_url":"https://api.github.com/repos/tatsuhiro-t/aria2/issues/507/events","html_url":"https://github.com/tatsuhiro-t/aria2/issues/507","id":122703503,"number":507,"title":"aria2c doesn't exit after BT download","user":{"login":"cykerway","id":392675,"avatar_url":"https://avatars.githubusercontent.com/u/392675?v=3","gravatar_id":"","url":"https://api.github.com/users/cykerway","html_url":"https://github.com/cykerway","followers_url":"https://api.github.com/users/cykerway/followers","following_url":"https://api.github.com/users/cykerway/following{/other_user}","gists_url":"https://api.github.com/users/cykerway/gists{/gist_id}","starred_url":"https://api.github.com/users/cykerway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cykerway/subscriptions","organizations_url":"https://api.github.com/users/cykerway/orgs","repos_url":"https://api.github.com/users/cykerway/repos","events_url":"https://api.github.com/users/cykerway/events{/privacy}","received_events_url":"https://api.github.com/users/cykerway/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-17T10:15:01Z","updated_at":"2015-12-18T23:51:55Z","closed_at":null,"body":"aria2c doesn't exit after a BT download even if `--seed-time=0` is specified. Adding\r\n`--enable-dht=false` will make it exit instantly after download. So I guess it's doing something\r\nrelated to DHT. What is exactly happening and how to fix it? Thank you.\r\n\r\nHere's the log:\r\n\r\n    .[#043b6f SEED(0.0) CN:0 SD:0]\r\n    12/17 18:10:44 [DEBUG] Updating periodicTaskQueue1\r\n    12/17 18:10:44 [DEBUG] Executing 0 Task(s). Queue has 0 task(s).\r\n    12/17 18:10:44 [DEBUG] Updating periodicTaskQueue2\r\n    12/17 18:10:44 [DEBUG] Executing 0 Task(s). Queue has 0 task(s).\r\n    12/17 18:10:44 [DEBUG] Updating immediateTaskQueue\r\n    12/17 18:10:44 [DEBUG] Executing 0 Task(s). Queue has 0 task(s).\r\n    12/17 18:10:44 [DEBUG] 0 dht messages remaining in the queue.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tatsuhiro-t/aria2/issues/comments/165922686","html_url":"https://github.com/tatsuhiro-t/aria2/issues/507#issuecomment-165922686","issue_url":"https://api.github.com/repos/tatsuhiro-t/aria2/issues/507","id":165922686,"user":{"login":"cykerway","id":392675,"avatar_url":"https://avatars.githubusercontent.com/u/392675?v=3","gravatar_id":"","url":"https://api.github.com/users/cykerway","html_url":"https://github.com/cykerway","followers_url":"https://api.github.com/users/cykerway/followers","following_url":"https://api.github.com/users/cykerway/following{/other_user}","gists_url":"https://api.github.com/users/cykerway/gists{/gist_id}","starred_url":"https://api.github.com/users/cykerway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cykerway/subscriptions","organizations_url":"https://api.github.com/users/cykerway/orgs","repos_url":"https://api.github.com/users/cykerway/repos","events_url":"https://api.github.com/users/cykerway/events{/privacy}","received_events_url":"https://api.github.com/users/cykerway/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T23:51:55Z","updated_at":"2015-12-18T23:51:55Z","body":"Yes I'm using UDP trackers. But I think aria2c can feel free to disconnect when the download is complete given that I explicitly set `--seed-time=0`. So this waiting seems to be unnecessary.\r\n\r\nI'm using aria2c to download multiple files one by one interactively and this kind of waiting is not acceptable. What I currently do is to use a hook script to kill aria2c on the `-on-bt-download-complete` event. It works but adds additional code complexity. Therefore I'm interested in why this waiting is necessary and how to avoid it. Thank you."}}