mirror of
http://galexander.org/git/simplesshd.git
synced 2025-07-10 04:48:05 +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))) {
|
(!intent.getBooleanExtra("stop", false))) {
|
||||||
do_start();
|
do_start();
|
||||||
/* XXX - maybe we should call startForeground(), but then we'd have to make a
|
/* 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;
|
return START_STICKY;
|
||||||
} else {
|
} else {
|
||||||
stop_sshd();
|
stop_sshd();
|
||||||
|
Loading…
Reference in New Issue
Block a user