mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
Update 2005-12-29
This commit is contained in:
@@ -807,9 +807,6 @@ actionclick(GtkWidget *widget, gpointer gdata) {
|
||||
|
||||
switch(act) {
|
||||
case ACT_START:
|
||||
if(TR_STATUS_STOPPING & sb[index].status)
|
||||
fprintf(stderr, "XXX still running\n");
|
||||
else
|
||||
tr_torrentStart(data->tr, index);
|
||||
updatesave = TRUE;
|
||||
break;
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
/***********************************************************************
|
||||
* Local prototypes
|
||||
**********************************************************************/
|
||||
static void torrentReallyStop( tr_handle_t * h, int t );
|
||||
static void downloadLoop( void * );
|
||||
static float rateDownload( tr_torrent_t * );
|
||||
static float rateUpload( tr_torrent_t * );
|
||||
@@ -232,6 +233,12 @@ void tr_torrentStart( tr_handle_t * h, int t )
|
||||
uint64_t now;
|
||||
int i;
|
||||
|
||||
if( tor->status & ( TR_STATUS_STOPPING | TR_STATUS_STOPPED ) )
|
||||
{
|
||||
/* Join the thread first */
|
||||
torrentReallyStop( h, t );
|
||||
}
|
||||
|
||||
tor->status = TR_STATUS_CHECK;
|
||||
tor->tracker = tr_trackerInit( h, tor );
|
||||
tor->bindPort = h->bindPort;
|
||||
|
||||
Reference in New Issue
Block a user