Skip to content

Commit

Permalink
actually remove disconnect timeout before the connected check otherwi…
Browse files Browse the repository at this point in the history
…se we will never reach it unless we effectively disconnect

Signed-off-by: Philippe De Swert <philippedeswert@gmail.com>
  • Loading branch information
philippedeswert committed May 17, 2011
1 parent 98a4c54 commit 17613ab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/usb_moded.c
Expand Up @@ -94,18 +94,18 @@ 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
*/
if(current_mode.connected)
return;

if(debounce)
{
g_source_remove(debounce);
debounce = 0;
}
#ifdef NOKIA
if(timeout_source)
{
Expand Down

0 comments on commit 17613ab

Please sign in to comment.