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