Skip to content

Commit

Permalink
Also disconnect when using softconnect
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Jan 11, 2013
1 parent 726e735 commit d955aac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/usb_moded-modules.c
Expand Up @@ -133,6 +133,12 @@ int usb_moded_unload_module(const char *module)
kmod_module_unref(mod);

#endif /* NO_KMOD */
softconnect = get_soft_connect_path();
if(softconnect)
{
write_to_file(softconnect, "disconnect");
free((void *)softconnect);
}

return(ret);
}
Expand Down

0 comments on commit d955aac

Please sign in to comment.