diff options
author | Honza Bambas <honzab.moz@firemni.cz> | 2019-07-20 15:36:09 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-20 15:36:09 +0200 |
commit | 0db9824e0b2da2cbea72e01e8a3e4595e20205bb (patch) | |
tree | 0105eadff98fd7187a439beefa173dbb5050532b /netwerk | |
parent | 37a4ed96b7be7a2d78c4db6831995d960844d159 (diff) | |
download | uxp-0db9824e0b2da2cbea72e01e8a3e4595e20205bb.tar.gz |
Bug 1548822.
Diffstat (limited to 'netwerk')
-rw-r--r-- | netwerk/protocol/http/nsHttpConnectionMgr.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/netwerk/protocol/http/nsHttpConnectionMgr.cpp b/netwerk/protocol/http/nsHttpConnectionMgr.cpp index dff08088aa..d402b41044 100644 --- a/netwerk/protocol/http/nsHttpConnectionMgr.cpp +++ b/netwerk/protocol/http/nsHttpConnectionMgr.cpp @@ -373,8 +373,12 @@ nsHttpConnectionMgr::VerifyTraffic() nsresult nsHttpConnectionMgr::DoShiftReloadConnectionCleanup(nsHttpConnectionInfo *aCI) { + RefPtr<nsHttpConnectionInfo> ci; + if (aCI) { + ci = aCI->Clone(); + } return PostEvent(&nsHttpConnectionMgr::OnMsgDoShiftReloadConnectionCleanup, - 0, aCI); + 0, ci); } class SpeculativeConnectArgs : public ARefBase @@ -507,8 +511,8 @@ nsresult nsHttpConnectionMgr::ProcessPendingQ(nsHttpConnectionInfo* aCI) { LOG(("nsHttpConnectionMgr::ProcessPendingQ [ci=%s]\n", aCI->HashKey().get())); - RefPtr<nsHttpConnectionInfo> ci;
- if (aCI) {
+ RefPtr<nsHttpConnectionInfo> ci; + if (aCI) { ci = aCI->Clone(); } return PostEvent(&nsHttpConnectionMgr::OnMsgProcessPendingQ, 0, ci); |