Skip to content

Commit

Permalink
Fix blocking request cancelation after a redirect occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 1, 2019
1 parent 150668d commit 4495699
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsblockingnetworkrequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ void QgsBlockingNetworkRequest::replyFinished()
break;
};

if ( mFeedback )
connect( mFeedback, &QgsFeedback::canceled, mReply, &QNetworkReply::abort );

if ( !mAuthCfg.isEmpty() && !QgsApplication::authManager()->updateNetworkReply( mReply, mAuthCfg ) )
{
mReplyContent.clear();
Expand Down

0 comments on commit 4495699

Please sign in to comment.