From d03520ce700ed45698cf91d4d9db3f4e8acf39ff Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Thu, 21 Mar 2019 16:36:00 +0000 Subject: [PATCH] Fix lost packets after connecting --- src/org/kde/kdeconnect/Device.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/kde/kdeconnect/Device.java b/src/org/kde/kdeconnect/Device.java index aa5d0347..69c5a76d 100644 --- a/src/org/kde/kdeconnect/Device.java +++ b/src/org/kde/kdeconnect/Device.java @@ -565,6 +565,11 @@ public class Device implements BaseLink.PacketReceiver { } } else if (isPaired()) { + // pluginsByIncomingInterface may not be built yet + if(pluginsByIncomingInterface.isEmpty()) { + reloadPluginsFromSettings(); + } + //If capabilities are not supported, iterate all plugins Collection targetPlugins = pluginsByIncomingInterface.get(np.getType()); if (targetPlugins != null && !targetPlugins.isEmpty()) {