From b02c96dcb7cb3f5e8a1e931df84ac464b49c5356 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Thu, 1 Jul 2021 17:17:59 +0200 Subject: [PATCH] avoid error when doing hydration when data socket is closed too early when data is received, if we close the socket they cannot be read Signed-off-by: Matthieu Gallien --- src/libsync/vfs/cfapi/cfapiwrapper.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libsync/vfs/cfapi/cfapiwrapper.cpp b/src/libsync/vfs/cfapi/cfapiwrapper.cpp index 81f4c3400b5ff..141238414ac11 100644 --- a/src/libsync/vfs/cfapi/cfapiwrapper.cpp +++ b/src/libsync/vfs/cfapi/cfapiwrapper.cpp @@ -204,7 +204,6 @@ void CALLBACK cfApiFetchDataCallback(const CF_CALLBACK_INFO *callbackInfo, const QObject::connect(vfs, &OCC::VfsCfApi::hydrationRequestFinished, &loop, [&](const QString &id) { qDebug(lcCfApiWrapper) << "Hydration finished for request" << id; if (requestId == id) { - socket.close(); signalSocket.close(); loop.quit(); }