OSDN Git Service

profile: Fix missing unexpected disconnection notification
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 11 Dec 2012 11:52:13 +0000 (13:52 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 11 Dec 2012 11:52:13 +0000 (13:52 +0200)
src/profile.c

index 65dc723..fba894c 100644 (file)
@@ -622,6 +622,7 @@ static gboolean ext_io_disconnected(GIOChannel *io, GIOCondition cond,
 
        DBG("%s disconnected from %s", ext->name, addr);
 drop:
+       device_profile_disconnected(conn->device, &ext->p, 0);
        ext->conns = g_slist_remove(ext->conns, conn);
        ext_io_destroy(conn);
        return FALSE;