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:
parent
5c01b97345
commit
f0347f7477
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user