Skip to content

Commit

Permalink
Merge branch 'jb53147' into 'master'
Browse files Browse the repository at this point in the history
[usb-moded] Flush sd login monitor when a new event arrives to avoid using lots of cpu. JB#53147

See merge request mer-core/usb-moded!75
  • Loading branch information
spiiroin committed Feb 15, 2021
2 parents f366b46 + d2220ec commit 120ceed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/usb_moded-user.c
Expand Up @@ -98,6 +98,8 @@ static gboolean user_watch_monitor_event_cb(GIOChannel *iochannel G_GNUC_UNUSED,
}
user_update_current_user();

sd_login_monitor_flush(user_watch_monitor);

EXIT:
if ( !success ) {
user_change_watch_id = 0;
Expand Down

0 comments on commit 120ceed

Please sign in to comment.