Skip to content

Commit 245c17c

Browse files
authored
Merge pull request #133 from bugsnag/next
Release v1.5.1
2 parents dbea541 + b5e4121 commit 245c17c

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

BugsnagPerformance/Assets/BugsnagPerformance/Scripts/Internal/Tracer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ private void DeliverBatch()
186186
new Thread(() =>
187187
{
188188
List<Span> batch = new List<Span>();
189-
foreach (var finishedSpan in _finishedSpanQueue)
189+
lock (_queueLock)
190190
{
191-
batch.Add(finishedSpan);
191+
batch.AddRange(_finishedSpanQueue);
192+
_finishedSpanQueue.Clear();
192193
}
193-
_finishedSpanQueue.Clear();
194194
if (batch.Count == 0)
195195
{
196196
return;

BugsnagPerformance/Assets/BugsnagPerformance/Scripts/Internal/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
internal static class Version
44
{
55
//TODO set this using sed or something in the release automation task
6-
public const string VersionString = "1.5.0";
6+
public const string VersionString = "1.5.1";
77
}
88
}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v1.5.1 (2024-09-09)
4+
5+
### Bug Fixes
6+
7+
- Fix an issue where the access to the finished span queue in the tracer was not thread safe. [#132](https://github.com/bugsnag/bugsnag-unity-performance/pull/132)
8+
39
## v1.5.0 (2024-09-03)
410

511
### Additions

0 commit comments

Comments
 (0)