Skip to content

Commit

Permalink
avoid error when doing hydration when data socket is closed too early
Browse files Browse the repository at this point in the history
when data is received, if we close the socket they cannot be read

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Jul 5, 2021
1 parent fac98e0 commit b02c96d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libsync/vfs/cfapi/cfapiwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit b02c96d

Please sign in to comment.