mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-04 02:57:35 +00:00
Use a common function to abort for debugging purposes
This commit is contained in:
1 parent
53b2217a34
commit
83e3ea5aa7
5 files changed
+18
-4
No files matched your search
+1
-1
@@ -1815,7 +1815,7 @@ namespace stream {
|
||||
auto task = []() {
|
||||
BOOST_LOG(fatal) << "Hang detected! Session failed to terminate in 10 seconds."sv;
|
||||
log_flush();
|
||||
std::abort();
|
||||
lifetime::debug_trap();
|
||||
};
|
||||
auto force_kill = task_pool.pushDelayed(task, 10s).task_id;
|
||||
auto fg = util::fail_guard([&force_kill]() {
|
||||
|
||||
Reference in new issue
Block a user