mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
chore: safeguard span finish
This commit is contained in:
parent
c04353bd38
commit
4c08cb36a8
2 changed files with 2 additions and 2 deletions
|
|
@ -65,7 +65,7 @@ class Interval extends Action
|
|||
} catch (\Exception $e) {
|
||||
Span::error($e);
|
||||
} finally {
|
||||
Span::current()->finish();
|
||||
Span::current()?->finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ class Messaging extends Action
|
|||
Span::error($e);
|
||||
throw $e;
|
||||
} finally {
|
||||
Span::current()->finish();
|
||||
Span::current()?->finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue