1
0
mirror of http://galexander.org/git/simplesshd.git synced 2025-01-30 00:40:56 +00:00

probably startForeground() is overkill?

This commit is contained in:
Greg Alexander 2014-12-16 18:43:12 -05:00
parent 5c01b97345
commit f0347f7477

View File

@ -30,7 +30,8 @@ public class SimpleSSHDService extends Service {
(!intent.getBooleanExtra("stop", false))) {
do_start();
/* XXX - maybe we should call startForeground(), but then we'd have to make a
* bogus notification... */
* bogus notification... and START_STICKY seems to actually do a good job of
* restarting us if we're killed... */
return START_STICKY;
} else {
stop_sshd();