]> git.neil.brown.name Git - gsm0710muxd.git/commitdiff
do not attempt to close virtual channels during shutdown. First off,
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Sat, 24 Jan 2009 00:07:30 +0000 (01:07 +0100)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Sat, 24 Jan 2009 00:07:30 +0000 (01:07 +0100)
the mainloop is no longer running, second, we're about to tell the
modem to completely turn off.
NOTE: Ideally this would be fixed properly, such as -- first closing
all the channels, _then_ flagging the mainloop to quit. After that,
running some -- modem specific -- power off command. We can't use it
like that on the mc75i.

src/gsm0710muxd.c

index f6aa2e0a5ca1a4b854d29b92dff94c82c334eafa..6260d24ad71fd83adde7f59d211a0fed0b497104 100644 (file)
@@ -1764,6 +1764,10 @@ static int close_devices()
        g_source_remove(serial.g_source);
        serial.g_source = -1;
        int i;
+// don't bother closing the channels over the MUX protocol, first off,
+// the mainloop is no longer running anyways, second, we're about to
+// shutdown the modem completely in a second.
+#if 0
        for (i=1;i<GSM0710_MAX_CHANNELS;i++)
        {
 //terminate command given. Close channels one by one and finaly close
@@ -1779,6 +1783,7 @@ static int close_devices()
                        LOG(LOG_INFO, "Logical channel %d closed", channellist[i].id);
                }
        }
+#endif
        if (serial.fd >= 0)
        {
                if (cmux_mode)