mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-15 05:48:42 +01:00
raising a SIGINT when the child thread has an exception so that the parent thread can exit all the threads and clean up gracefully
This commit is contained in:
@@ -29,6 +29,9 @@ Receiver::~Receiver() = default;
|
||||
|
||||
Receiver::Receiver(uint16_t port) {
|
||||
validatePortNumber(port);
|
||||
if (port == 9999) {
|
||||
throw sls::RuntimeError("Throwing for testing purposes. ");
|
||||
}
|
||||
tcpipInterface = make_unique<ClientInterface>(port);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user