From 2a41e064b828a3fefb4ace9102d1a1d7dca308aa Mon Sep 17 00:00:00 2001 From: Ulisses Furquim Date: Mon, 11 Sep 2006 22:06:48 +0000 Subject: Make rfcomm_release() close the underlying connection --- hcid/dbus-rfcomm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hcid/dbus-rfcomm.c') diff --git a/hcid/dbus-rfcomm.c b/hcid/dbus-rfcomm.c index bf5c2fbf..2324489c 100644 --- a/hcid/dbus-rfcomm.c +++ b/hcid/dbus-rfcomm.c @@ -181,6 +181,7 @@ static int rfcomm_release(struct rfcomm_node *node, int *err) memset(&req, 0, sizeof(req)); req.dev_id = node->id; + req.flags = (1 << RFCOMM_HANGUP_NOW); if (ioctl(rfcomm_ctl, RFCOMMRELEASEDEV, &req) < 0) { if (err) -- cgit