diff options
| -rw-r--r-- | audio/headset.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/audio/headset.c b/audio/headset.c index b1aad63d..4a7e8db4 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -408,6 +408,11 @@ static gboolean rfcomm_io_cb(GIOChannel *chan, GIOCondition cond,  			break;  		case HEADSET_EVENT_KEYPRESS: +			if (hs->ring_timer) { +				g_source_remove(hs->ring_timer); +				hs->ring_timer = 0; +			} +  			hs_signal(hs, "AnswerRequested");  			break; @@ -438,11 +443,6 @@ static gboolean rfcomm_io_cb(GIOChannel *chan, GIOCondition cond,  			hs->data_start = 0;  	} -	if (hs->ring_timer) { -		g_source_remove(hs->ring_timer); -		hs->ring_timer = 0; -	} -  	return TRUE;  failed:  | 
