forked from jesec/rtorrent
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bcaa5ec
commit 6e422b0
Showing
7 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
// Copyright (C) 2005-2011, Jari Sundell <[email protected]> | ||
|
||
#include "buildinfo.h" | ||
#include "globals.h" | ||
#include <torrent/torrent.h> | ||
|
||
|
||
#ifdef HAVE_XMLRPC_C | ||
|
||
|
@@ -575,6 +578,9 @@ RpcXml::cleanup() { | |
|
||
bool | ||
RpcXml::process(const char* inBuffer, uint32_t length, res_callback callback) { | ||
std::unique_lock lock(torrent::thread_base::m_global.lock); | ||
torrent::main_thread()->interrupt(); | ||
|
||
xmlrpc_env localEnv; | ||
xmlrpc_env_init(&localEnv); | ||
|
||
|
@@ -607,7 +613,7 @@ RpcXml::insert_command(const char* name, const char* parm, const char* doc) { | |
doc); | ||
|
||
if (localEnv.fault_occurred) | ||
throw torrent::internal_error("Fault occured while inserting xmlrpc call."); | ||
throw ::torrent::internal_error("Fault occured while inserting xmlrpc call."); | ||
|
||
xmlrpc_env_clean(&localEnv); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters