| 238 |
if( axel->conn[i].currentbyte <= axel->conn[i].lastbyte ) |
if( axel->conn[i].currentbyte <= axel->conn[i].lastbyte ) |
| 239 |
{ |
{ |
| 240 |
if( axel->conf->verbose >= 2 ) |
if( axel->conf->verbose >= 2 ) |
| 241 |
|
{ |
| 242 |
axel_message( axel, _("Connection %i downloading from %s:%i using interface %s"), |
axel_message( axel, _("Connection %i downloading from %s:%i using interface %s"), |
| 243 |
i, axel->conn[i].host, axel->conn[i].port, axel->conn[i].local_if ); |
i, axel->conn[i].host, axel->conn[i].port, axel->conn[i].local_if ); |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
axel->conn[i].state = 1; |
| 247 |
if( pthread_create( axel->conn[i].setup_thread, NULL, setup_thread, &axel->conn[i] ) != 0 ) |
if( pthread_create( axel->conn[i].setup_thread, NULL, setup_thread, &axel->conn[i] ) != 0 ) |
| 248 |
{ |
{ |
| 249 |
axel_message( axel, _("pthread error!!!") ); |
axel_message( axel, _("pthread error!!!") ); |
| 252 |
else |
else |
| 253 |
{ |
{ |
| 254 |
axel->conn[i].last_transfer = gettime(); |
axel->conn[i].last_transfer = gettime(); |
|
axel->conn[i].state = 1; |
|
| 255 |
} |
} |
| 256 |
} |
} |
| 257 |
|
|
| 400 |
if( axel->conf->verbose >= 2 ) |
if( axel->conf->verbose >= 2 ) |
| 401 |
axel_message( axel, _("Connection %i downloading from %s:%i using interface %s"), |
axel_message( axel, _("Connection %i downloading from %s:%i using interface %s"), |
| 402 |
i, axel->conn[i].host, axel->conn[i].port, axel->conn[i].local_if ); |
i, axel->conn[i].host, axel->conn[i].port, axel->conn[i].local_if ); |
| 403 |
|
|
| 404 |
|
axel->conn[i].state = 1; |
| 405 |
if( pthread_create( axel->conn[i].setup_thread, NULL, setup_thread, &axel->conn[i] ) == 0 ) |
if( pthread_create( axel->conn[i].setup_thread, NULL, setup_thread, &axel->conn[i] ) == 0 ) |
| 406 |
{ |
{ |
|
axel->conn[i].state = 1; |
|
| 407 |
axel->conn[i].last_transfer = gettime(); |
axel->conn[i].last_transfer = gettime(); |
| 408 |
} |
} |
| 409 |
else |
else |