Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Stop appsync on shutdown, only do diag appsync when appsync is compil…
…ed in, add connection_sharing mode to development headers

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Dec 17, 2013
1 parent 47b2cbe commit ec74d4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/usb_moded-modes.h
Expand Up @@ -29,3 +29,4 @@
#define MODE_DEVELOPER "developer_mode"
#define MODE_MTP "mtp_mode"
#define MODE_CHARGER "dedicated_charger"
#define MODE_CONNECTION_SHARING "connection_charing"
3 changes: 2 additions & 1 deletion src/usb_moded.c
Expand Up @@ -495,8 +495,8 @@ static void usb_moded_init(void)
readlist();
/* make sure all services are down when starting */
appsync_stop();
#endif /* APP_SYNC */
modelist = read_mode_list(diag_mode);
#endif /* APP_SYNC */

#ifdef UDEV
if(check_trigger())
Expand Down Expand Up @@ -549,6 +549,7 @@ static void handle_exit(void)
extern struct kmod_ctx *ctx;

/* exiting and clean-up when mainloop ended */
appsync_stop();
hwal_cleanup();
usb_moded_dbus_cleanup();
stop_devicelock_listener();
Expand Down

0 comments on commit ec74d4d

Please sign in to comment.