fixed indentation

This commit is contained in:
Arvid Norberg 2009-05-07 06:47:19 +00:00
parent 838df44184
commit d0d2328288
1 changed files with 10 additions and 12 deletions

View File

@ -2058,19 +2058,17 @@ namespace libtorrent
{ {
session_impl::mutex_t::scoped_lock l(m_ses.m_mutex); session_impl::mutex_t::scoped_lock l(m_ses.m_mutex);
if (ret == 0)
{ {
if (ret == 0) if (alerts().should_post<file_renamed_alert>())
{ alerts().post_alert(file_renamed_alert(get_handle(), j.str, j.piece));
if (alerts().should_post<file_renamed_alert>()) m_torrent_file->rename_file(j.piece, j.str);
alerts().post_alert(file_renamed_alert(get_handle(), j.str, j.piece)); }
m_torrent_file->rename_file(j.piece, j.str); else
} {
else if (alerts().should_post<file_rename_failed_alert>())
{ alerts().post_alert(file_rename_failed_alert(get_handle()
if (alerts().should_post<file_rename_failed_alert>()) , j.piece, j.error));
alerts().post_alert(file_rename_failed_alert(get_handle()
, j.piece, j.error));
}
} }
} }