Skip to content

Commit

Permalink
fix(userspace/libsinsp): dispose async event handler in emscripten
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
  • Loading branch information
jasondellaluce authored and poiana committed Nov 24, 2023
1 parent 5bd0c0e commit f72e40c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions userspace/libsinsp/sinsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,9 +831,6 @@ void sinsp::close()
if (!is_capture() && m_mode != SINSP_MODE_NONE)
{
std::string err;
// note(jasondellaluce,rohith-raju): for now the emscripten build does not support
// tbb queues, so async event production is disabled
#ifndef __EMSCRIPTEN__
for (auto& p : m_plugin_manager->plugins())
{
if (p->caps() & CAP_ASYNC)
Expand All @@ -849,7 +846,6 @@ void sinsp::close()
}
}
}
#endif
if (!err.empty())
{
throw sinsp_exception(err);
Expand Down

0 comments on commit f72e40c

Please sign in to comment.