/[axel]/trunk/axel.c
ViewVC logotype

Diff of /trunk/axel.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 93 by phihag-guest, Sat Jan 3 14:31:03 2009 UTC revision 94 by phihag-guest, Mon Feb 23 19:39:59 2009 UTC
# Line 238  void axel_start( axel_t *axel ) Line 238  void axel_start( axel_t *axel )
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!!!") );
# Line 248  void axel_start( axel_t *axel ) Line 252  void axel_start( axel_t *axel )
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    
# Line 397  conn_check: Line 400  conn_check:
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

Legend:
Removed from v.93  
changed lines
  Added in v.94

  ViewVC Help
Powered by ViewVC 1.1.5