mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-29 13:17:43 +00:00
Fix leak on Android < IceCream when workerGroup hasn't been initialized
This commit is contained in:
parent
d8169f3787
commit
c9b852f88c
@ -482,8 +482,12 @@ public class LanLinkProvider extends BaseLinkProvider {
|
|||||||
public void onStop() {
|
public void onStop() {
|
||||||
//Log.i("KDE/LanLinkProvider", "onStop");
|
//Log.i("KDE/LanLinkProvider", "onStop");
|
||||||
try {
|
try {
|
||||||
workerGroup.shutdownGracefully();
|
if (workerGroup != null) {
|
||||||
bossGroup.shutdownGracefully();
|
workerGroup.shutdownGracefully();
|
||||||
|
}
|
||||||
|
if (bossGroup != null) {
|
||||||
|
bossGroup.shutdownGracefully();
|
||||||
|
}
|
||||||
udpGroup.shutdownGracefully();
|
udpGroup.shutdownGracefully();
|
||||||
clientGroup.shutdownGracefully();
|
clientGroup.shutdownGracefully();
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user