Commit 17613ab2 authored by phdeswer's avatar phdeswer

actually remove disconnect timeout before the connected check otherwise we...

actually remove disconnect timeout before the connected check otherwise we will never reach it unless we effectively disconnect
Signed-off-by: phdeswer's avatarPhilippe De Swert <philippedeswert@gmail.com>
parent 98a4c546
......@@ -94,6 +94,11 @@ void set_usb_connected(gboolean connected)
if(connected)
{
if(debounce)
{
g_source_remove(debounce);
debounce = 0;
}
/* do not go through the routine if already connected to avoid
spurious load/unloads due to faulty signalling
NOKIA: careful with devicelock
......@@ -101,11 +106,6 @@ void set_usb_connected(gboolean connected)
if(current_mode.connected)
return;
if(debounce)
{
g_source_remove(debounce);
debounce = 0;
}
#ifdef NOKIA
if(timeout_source)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment