mirror of
https://github.com/matrix-construct/construct
synced 2025-01-02 19:04:17 +01:00
ircd:🆑 Use non-throwing zero value for profile call when disabled.
This commit is contained in:
parent
5962a58c1e
commit
77ebbe4528
1 changed files with 3 additions and 0 deletions
|
@ -1448,6 +1448,9 @@ const
|
|||
cl_event(this->handle)
|
||||
};
|
||||
|
||||
if(!profile_queue || !handle)
|
||||
return {0};
|
||||
|
||||
char buf[4][8];
|
||||
return std::array<uint64_t, 4>
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue