summaryrefslogtreecommitdiffstats
path: root/serial/manager.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-05-06 01:20:42 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-05-06 01:20:42 +0000
commit6dd473cb823393b9dbfc370d64a039411664372d (patch)
tree8ceffb79cc43a2dfcae13926db7cb4a9ac3873af /serial/manager.c
parentd78c8f2dce3e97c62e71e07a5f78f1289db1dd58 (diff)
Remove all serial ports on shutdown
Diffstat (limited to 'serial/manager.c')
-rw-r--r--serial/manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/serial/manager.c b/serial/manager.c
index 2bb1ce84..d0a21ce6 100644
--- a/serial/manager.c
+++ b/serial/manager.c
@@ -2295,6 +2295,8 @@ void serial_manager_exit(void)
dbus_connection_unref(connection);
connection = NULL;
+ port_release_all();
+
if (rfcomm_ctl >= 0)
close(rfcomm_ctl);
}