Skip to content

Commit

Permalink
Don't throw exception when socket fails to open
Browse files Browse the repository at this point in the history
Co-authored-by: Uriel <[email protected]>
  • Loading branch information
kitlith and ImUrX authored Feb 6, 2024
1 parent 83d129a commit 165263b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/bridge/bridge-unix-sockets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,10 @@ BridgeStatus runBridgeFrame(SlimeVRDriver::VRDriver& driver) {
socket = (home / SLIMEVR_HOME_LOCAL_DIR / SOCKET_NAME);
}
}
if(!fs::exists(socket)) {
throw std::runtime_error("socket " SOCKET_NAME " not found");
if(fs::exists(socket)) {
driver.Log("bridge socket: " + std::string(socket));
client.Open(socket.native());
}
driver.Log("bridge socket: " + std::string(socket));
client.Open(socket.native());
}
client.UpdateOnce();

Expand Down

0 comments on commit 165263b

Please sign in to comment.