]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
reset() result was ignored and it sometimes leaded to troubles.
authorDmitry Bely <dbely@mail.ru>
Sat, 2 Sep 2000 18:11:51 +0000 (18:11 +0000)
committerDmitry Bely <dbely@mail.ru>
Sat, 2 Sep 2000 18:11:51 +0000 (18:11 +0000)
faxd/ModemServer.c++

index 777c2f135c4d1cbfb47e68fd9c6ef48a28eb0d4b..09b25498e05627978c6cf06858afb5a024f26ed1 100644 (file)
@@ -432,7 +432,8 @@ ModemServer::setupModem()
         * Reset the modem in case some other program
         * went in and messed with the configuration.
         */
-       modem->reset();
+        if( !modem->reset() )
+            return (false);
     /*
      * Most modem-related parameters are dealt with
      * in the modem driver.  The speaker volume is