ソースを参照

Start previously active torrents after log file setup.

master
Richard Nyberg 16年前
コミット
5d0272a9a2
2個のファイルの変更6行の追加5行の削除
  1. +0
    -5
      btpd/btpd.c
  2. +6
    -0
      btpd/main.c

+ 0
- 5
btpd/btpd.c ファイルの表示

@@ -126,9 +126,4 @@ btpd_init(void)
timer_init(&m_grace_timer, grace_cb, NULL);
timer_init(&m_heartbeat, heartbeat_cb, NULL);
btpd_timer_add(&m_heartbeat, (& (struct timespec) { 1, 0 }));

if (!empty_start)
active_start();
else
active_clear();
}

+ 6
- 0
btpd/main.c ファイルの表示

@@ -269,6 +269,12 @@ args_done:
setlinebuf(stderr);

btpd_daemon_phase = 0;

if (!empty_start)
active_start();
else
active_clear();

evloop();

btpd_err("Exit from evloop with error (%s).\n", strerror(errno));


読み込み中…
キャンセル
保存