2
0
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:
Albert Vaca 2016-06-14 11:11:48 +02:00
parent d8169f3787
commit c9b852f88c

View File

@ -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){