android: Make sure every listener at the VPN state service is only registered once
authorTobias Brunner <tobias@strongswan.org>
Fri, 21 Apr 2017 11:54:51 +0000 (13:54 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 30 Jun 2017 07:32:27 +0000 (09:32 +0200)
commitb14507dd900104ef2a5b6abe0d50878f171d4627
treec68b4461c741725417bc21631416c91ea4fc9860
parent6766c85231a083a239ac8c7bed6d9ef5644dded2
android: Make sure every listener at the VPN state service is only registered once

We register when the service connects but also in onStart() (as we
unregister in onStop() to avoid updates when not shown).  So this could
theoretically cause the listener to get registered twice if the service
is connected before onStart() is called (it seems it usually isn't).
src/frontends/android/app/src/main/java/org/strongswan/android/logic/VpnStateService.java