aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDan Williams <dan@ioncontrol.co>2025-05-07 22:55:57 -0500
committerDan Williams <dan@ioncontrol.co>2025-05-08 15:41:10 -0500
commitb13bdacf38f1dce3d914fc46472948adbf3d1bc6 (patch)
treeaa17fa75e8828ce721e11dd64e059b7ffe7f004a /src/main.c
parent0f97d90490dbacad3a40a372b3c6ac626e7c6082 (diff)
broadband-modem: close serial ports in dispose
We want ports to be closed as early as possible; so make sure they are closed in dispose() which is run explicitly by MMDevice when cleaning up and removing the modem. Otherwise they could stay open longer than we want, causing problems for suspend/resume. This caused problems with suspend because cancelling the MMBaseModem's cancellable triggered an idle handler that held a reference to the modem, preventing finalize() from running until after the suspend code was finished, thus preventing ports from being closed and cleaned up. Closing them in dispose() handles this. Signed-off-by: Dan Williams <dan@ioncontrol.co>
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions