~ubuntu-branches/ubuntu/vivid/bluez/vivid

« back to all changes in this revision

Viewing changes to src/manager.c

  • Committer: Package Import Robot
  • Author(s): Shih-Yuan Lee (FourDollars)
  • Date: 2014-04-08 10:54:11 UTC
  • Revision ID: package-import@ubuntu.com-20140408105411-14nsmhboyyxkwwn0
Tags: 4.101-0ubuntu12
debian/patches/13_reset_default_adapter_id.patch: Reset default_adapter_id
when there is no adapter. (LP: #1303819)

Show diffs side-by-side

added added

removed removed

Lines of Context:
305
305
        adapter_remove(adapter);
306
306
        btd_adapter_unref(adapter);
307
307
 
308
 
        if (adapters == NULL)
 
308
        if (adapters == NULL) {
 
309
                default_adapter_id = -1;
309
310
                btd_start_exit_timer();
 
311
        }
310
312
}
311
313
 
312
314
void manager_cleanup(DBusConnection *conn, const char *path)