Skip to content

Commit

Permalink
vr_session: Raise SIGTERM on close
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Oct 1, 2023
1 parent d0cdf4e commit 3f7768f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vr_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "log.hpp"
#include "ime.hpp"

#include <signal.h>
#include <string.h>
#include <thread>
#include <mutex>
Expand Down Expand Up @@ -283,8 +284,7 @@ static void vrsession_input_thread()
{
case vr::VREvent_OverlayClosed:
case vr::VREvent_Quit:
g_bRun = false;
nudge_steamcompmgr();
raise( SIGTERM );
break;

case vr::VREvent_KeyboardCharInput:
Expand Down

0 comments on commit 3f7768f

Please sign in to comment.