General cleanup of the demand dialer stuff. Added a bunch of short
functions to the WvWeaver class to make it more manageable. (net_online(), net_dynamic(), dialer_configured(), etc). git-svn-id: file:///home/apenwarr/alumnit-svn/public/trunk@69 6619c942-59fa-0310-bf43-a07aaa81d9ac
This commit is contained in:
parent
566d2c8239
commit
b0edaed2b8
13
wvdialer.cc
13
wvdialer.cc
|
@ -400,13 +400,14 @@ bool WvDialer::init_modem()
|
|||
int received;
|
||||
|
||||
// Open the modem...
|
||||
if( !modem ) {
|
||||
modem = new WvModem( options.modem, options.baud );
|
||||
if( !modem->isok() ) {
|
||||
err( "Cannot open %s: %s\n", options.modem, modem->errstr() );
|
||||
return( false );
|
||||
}
|
||||
if( modem ) delete modem;
|
||||
|
||||
modem = new WvModem( options.modem, options.baud );
|
||||
if( !modem->isok() ) {
|
||||
err( "Cannot open %s: %s\n", options.modem, modem->errstr() );
|
||||
return( false );
|
||||
}
|
||||
|
||||
log( "Initializing modem.\n" );
|
||||
|
||||
// make modem happy
|
||||
|
|
Loading…
Reference in New Issue