Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Fix what seems like an obvious logical error
Browse files Browse the repository at this point in the history
Updates #542
  • Loading branch information
mstoykov committed Oct 11, 2022
1 parent 087082f commit 1114144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/network_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func (m *NetworkManager) onLoadingFinished(event *network.EventLoadingFinished)
reqFromParent := m.parent.requestFromID(event.RequestID)

// Main requests have matching loaderID and requestID.
if reqFromParent != nil || reqFromParent.getDocumentID() == event.RequestID.String() {
if reqFromParent != nil && reqFromParent.getDocumentID() == event.RequestID.String() {
m.reqsMu.Lock()
m.reqIDToRequest[event.RequestID] = reqFromParent
m.reqsMu.Unlock()
Expand Down

0 comments on commit 1114144

Please sign in to comment.