From 018cadd3375c7aa2a4e2b5b8371e87c4c83ee6b7 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Thu, 5 Mar 2009 17:20:31 +0200 Subject: bluetooth: restart timer when write begin --- src/modules/bluetooth/module-bluetooth-device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index d5c2a87c..3e09611e 100644 --- a/src/modules/bluetooth/module-bluetooth-device.c +++ b/src/modules/bluetooth/module-bluetooth-device.c @@ -1126,6 +1126,8 @@ static void thread_func(void *userdata) { } if (writable && do_write) { + if (u->write_index == 0) + u->started_at = pa_rtclock_usec(); if (u->profile == PROFILE_A2DP) { if (a2dp_process_render(u) < 0) -- cgit