Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Jul 5, 2021
1 parent b02c96d commit adaa594
Show file tree
Hide file tree
Showing 2 changed files with 2 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) {
signalSocket.close();
loop.quit();
}
});
Expand Down
2 changes: 2 additions & 0 deletions src/libsync/vfs/cfapi/hydrationjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ void OCC::HydrationJob::cancel()
}

_signalSocket->write("cancelled");
_signalSocket->close();
_transferDataSocket->close();

emitFinished(Cancelled);
}
Expand Down

0 comments on commit adaa594

Please sign in to comment.