From 6dafdbdf54c261ae80ba3ac76f9d488985d7a101 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Fri, 27 Jun 2014 18:16:07 +0300 Subject: [PATCH] android/health: Assign channel to user_data Assign channel for incoming connections when it is created. --- android/health.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/health.c b/android/health.c index de71aa750..378650433 100644 --- a/android/health.c +++ b/android/health.c @@ -1213,6 +1213,9 @@ static struct health_channel *connect_channel(struct mcap_mcl *mcl, channel = create_channel(app, mdepid, device); } + /* Device is created here */ + mcl->cb->user_data = channel; + return channel; } -- 2.47.3