2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 21:27:40 +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() {
//Log.i("KDE/LanLinkProvider", "onStop");
try {
if (workerGroup != null) {
workerGroup.shutdownGracefully();
}
if (bossGroup != null) {
bossGroup.shutdownGracefully();
}
udpGroup.shutdownGracefully();
clientGroup.shutdownGracefully();
}catch (Exception e){