From b7418c1db65fa4229ab929efa17642ae01468a8d Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Mon, 5 Dec 2016 22:20:45 +0100 Subject: [PATCH] Socket should be volatile to prevent data-race CCBUG: 368438 --- src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java b/src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java index bea937c0..58a42302 100644 --- a/src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java +++ b/src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java @@ -61,7 +61,7 @@ public class LanLink extends BaseLink { // because it's probably trying to find me and // potentially ask for pairing. - private Socket socket = null; + private volatile Socket socket = null; private LinkDisconnectedCallback callback;