Skip to content

Commit

Permalink
Network: catch interruptexception by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasDebrunner committed Dec 11, 2023
1 parent e9dd682 commit 9115b88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/mav/Network.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ namespace mav {
_expireConnection(connection.second, std::make_exception_ptr(e));
}
}
} catch (NetworkInterfaceInterrupt) {
} catch (NetworkInterfaceInterrupt&) {
_should_terminate.store(true);
}
}
Expand Down Expand Up @@ -290,7 +290,7 @@ namespace mav {
_expireConnection(connection.second, std::make_exception_ptr(e));
}
}
} catch (NetworkInterfaceInterrupt) {
} catch (NetworkInterfaceInterrupt&) {
_should_terminate.store(true);
}

Expand Down

0 comments on commit 9115b88

Please sign in to comment.