No need to pass connect_cb if confirm_cb is passed

This commit is contained in:
Johan Hedberg 2009-02-19 20:43:01 +02:00
parent 3e3b34a52f
commit 9cbb5351d6

View File

@ -3063,7 +3063,7 @@ static GIOChannel *avdtp_server_socket(const bdaddr_t *src, gboolean master)
GError *err = NULL;
GIOChannel *io;
io = bt_io_listen(BT_IO_L2CAP, avdtp_connect_cb, avdtp_confirm_cb,
io = bt_io_listen(BT_IO_L2CAP, NULL, avdtp_confirm_cb,
NULL, NULL, &err,
BT_IO_OPT_SOURCE_BDADDR, src,
BT_IO_OPT_PSM, AVDTP_PSM,