Skip to content

Commit

Permalink
Give it another try
Browse files Browse the repository at this point in the history
  • Loading branch information
bsneed committed Nov 17, 2023
1 parent cf0be31 commit 56ad97f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Segment/Analytics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,9 @@ extension OperatingMode {
// main, ignore it, and use the default queue. this prevents
// a possible deadlock.
if queue === DispatchQueue.main {
OperatingMode.defaultQueue.asyncAndWait(execute: task)
OperatingMode.defaultQueue.asyncAndWait(execute: DispatchWorkItem(block: task))
} else {
queue.asyncAndWait(execute: task)
queue.asyncAndWait(execute: DispatchWorkItem(block: task))
}
}
}
Expand Down

0 comments on commit 56ad97f

Please sign in to comment.