mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
#1156: make the RPC callbacks a little more flexible to make thread issues easier on the mac client
This commit is contained in:
@@ -316,7 +316,7 @@ onRPCIdle( void * vdata )
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
static tr_rpc_callback_status
|
||||
onRPCChanged( tr_handle * handle UNUSED,
|
||||
tr_rpc_callback_type type,
|
||||
struct tr_torrent * tor,
|
||||
@@ -331,6 +331,7 @@ onRPCChanged( tr_handle * handle UNUSED,
|
||||
data->tor = type == TR_RPC_TORRENT_REMOVING ? NULL : tor;
|
||||
data->cbdata = cbdata;
|
||||
g_idle_add( onRPCIdle, data );
|
||||
return TR_RPC_OK;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user