mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 04:58:59 -05:00
Cleanup code
This commit is contained in:
@@ -42,24 +42,12 @@ set(SOURCE_FILES
|
||||
)
|
||||
source_group("Source Files" FILES ${SOURCE_FILES})
|
||||
|
||||
# # Libtorrent
|
||||
# target_include_directories(
|
||||
# openspace-module-sync
|
||||
# SYSTEM PUBLIC
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/ext/libtorrent/include
|
||||
# )
|
||||
# target_link_libraries(
|
||||
# openspace-module-sync
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/ext/libtorrent
|
||||
# )
|
||||
|
||||
create_new_module(
|
||||
"Sync"
|
||||
sync_module
|
||||
${HEADER_FILES} ${SOURCE_FILES}
|
||||
)
|
||||
|
||||
|
||||
#####
|
||||
# Libtorrent
|
||||
#####
|
||||
|
||||
@@ -122,7 +122,10 @@ void TorrentClient::pollAlerts() {
|
||||
}
|
||||
}
|
||||
|
||||
TorrentClient::TorrentId TorrentClient::addTorrentFile(std::string torrentFile, std::string destination, TorrentProgressCallback cb) {
|
||||
TorrentClient::TorrentId TorrentClient::addTorrentFile(std::string torrentFile,
|
||||
std::string destination,
|
||||
TorrentProgressCallback cb)
|
||||
{
|
||||
std::lock_guard<std::mutex> guard(_mutex);
|
||||
|
||||
if (!_session) {
|
||||
|
||||
Reference in New Issue
Block a user