Merge pull request #11236 from appwrite/safeguard-span-finish

This commit is contained in:
Chirag Aggarwal authored and GitHub committed 2026-02-03 18:32:32 +05:30
commit 5537fe210e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ class Interval extends Action
} catch (\Exception $e) {
Span::error($e);
} finally {
Span::current()->finish();
Span::current()?->finish();
}
});
}
+1 -1
View File
@@ -124,7 +124,7 @@ class Messaging extends Action
Span::error($e);
throw $e;
} finally {
Span::current()->finish();
Span::current()?->finish();
}
}