Skip to content

Commit

Permalink
Adopt WopiStorage::uploadLocalFileToStorageAsync() to ConnectFailCall…
Browse files Browse the repository at this point in the history
…back

since commit f6ce37b

Signed-off-by: Sven Göthel <[email protected]>
Change-Id: I65ee775c584317d6dff720d009de8fe9874bfc8c
  • Loading branch information
Sven Göthel authored and caolanm committed Aug 19, 2024
1 parent 6f495da commit ff6a2c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wsd/wopi/WopiStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,10 @@ void WopiStorage::uploadLocalFileToStorageAsync(const Authorization& auth, LockC
UploadResult(UploadResult::Result::FAILED, "Connection failed.")));
});

// Notify client via callback that the request is in progress...
asyncUploadCallback(
AsyncUpload(AsyncUpload::State::Running, UploadResult(UploadResult::Result::OK)));

// Make the request.
_uploadHttpSession->asyncRequest(httpRequest, socketPoll);

Expand Down

0 comments on commit ff6a2c7

Please sign in to comment.