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() {
|
||||
//Log.i("KDE/LanLinkProvider", "onStop");
|
||||
try {
|
||||
workerGroup.shutdownGracefully();
|
||||
bossGroup.shutdownGracefully();
|
||||
if (workerGroup != null) {
|
||||
workerGroup.shutdownGracefully();
|
||||
}
|
||||
if (bossGroup != null) {
|
||||
bossGroup.shutdownGracefully();
|
||||
}
|
||||
udpGroup.shutdownGracefully();
|
||||
clientGroup.shutdownGracefully();
|
||||
}catch (Exception e){
|
||||
|
Loading…
x
Reference in New Issue
Block a user