Ignore:
Timestamp:
Jan 21, 2007, 7:42:11 PM (15 years ago)
Author:
titer
Message:

More simplifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/natpmp.c

    r1420 r1425  
    472472        tr_netClose( *fd );
    473473        *fd = -1;
    474         tr_fdSocketClosed( 0 );
    475474    }
    476475}
     
    489488    }
    490489    ret->fd = -1;
    491     if( tr_fdSocketWillCreate( 0 ) )
    492     {
    493         goto err;
    494     }
    495     ret->fd = tr_netOpenUDP( addr, htons( PMP_PORT ) );
     490    ret->fd = tr_netOpenUDP( addr, htons( PMP_PORT ), 1 );
    496491    if( 0 > ret->fd )
    497492    {
     
    584579    struct in_addr addr;
    585580
    586     if( tr_fdSocketWillCreate( 0 ) )
    587     {
    588         return -1;
    589     }
    590 
    591581    addr.s_addr = inet_addr( PMP_MCAST_ADDR );
    592582    fd = tr_netMcastOpen( PMP_PORT, addr );
    593583    if( 0 > fd )
    594584    {
    595         tr_fdSocketClosed( 0 );
    596585        return -1;
    597586    }
Note: See TracChangeset for help on using the changeset viewer.