From 41560cd307ac9e5852e7bc91584a398f6e3b5e31 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Tue, 7 Oct 2014 13:18:13 -0700 Subject: [PATCH] Fix Windows Firmware Update crash --- src/comm/UDPLink.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/comm/UDPLink.cc b/src/comm/UDPLink.cc index d02e9290a..b1146b0c8 100644 --- a/src/comm/UDPLink.cc +++ b/src/comm/UDPLink.cc @@ -290,7 +290,8 @@ bool UDPLink::disconnect() if(socket) { - delete socket; + // Make sure delete happen on correct thread + socket->deleteLater(); socket = NULL; } -- 2.22.0