2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +00:00

Socket should be volatile to prevent data-race

CCBUG: 368438
This commit is contained in:
Albert Vaca
2016-12-05 22:20:45 +01:00
parent e6bc78f013
commit b7418c1db6

View File

@@ -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;