Skip to content

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 508bcb8 commit 08f4aad
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 @@ -397,7 +397,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 08f4aad

Please sign in to comment.