From 98a0c4c761f28ebc47e46b0760cc3dba2939da84 Mon Sep 17 00:00:00 2001 From: Michael 'Mickey' Lauer Date: Sat, 24 Jan 2009 01:07:30 +0100 Subject: [PATCH] do not attempt to close virtual channels during shutdown. First off, 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gsm0710muxd.c b/src/gsm0710muxd.c index f6aa2e0..6260d24 100644 --- a/src/gsm0710muxd.c +++ b/src/gsm0710muxd.c @@ -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= 0) { if (cmux_mode) -- 2.43.0