Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lsl_cpp.h exception handling #194

Merged
merged 5 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/lsl_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ inline int32_t check_error(int32_t ec) {
switch (ec) {
case lsl_timeout_error: throw timeout_error("The operation has timed out.");
case lsl_lost_error:
throw timeout_error(
throw lost_error(
"The stream has been lost; to continue reading, you need to re-resolve it.");
case lsl_argument_error:
throw std::invalid_argument("An argument was incorrectly specified.");
Expand Down
2 changes: 1 addition & 1 deletion src/netinterfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ std::vector<lsl::netif> lsl::get_local_interfaces() {
// No address? Skip.
if (addr->ifa_addr == nullptr) continue;
LOG_F(INFO, "netif '%s' (status: %d, multicast: %d, broadcast: %d)", addr->ifa_name,
addr->ifa_flags & IFF_MULTICAST, addr->ifa_flags & IFF_UP,
addr->ifa_flags & IFF_UP, addr->ifa_flags & IFF_MULTICAST,
addr->ifa_flags & IFF_BROADCAST);
// Interface doesn't support multicast? Skip.
if (!(addr->ifa_flags & IFF_MULTICAST)) continue;
Expand Down