diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-06-08 11:35:07 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-06-08 11:35:07 +0200 |
commit | 830c43f4b462fb2f8d995dd0cdc8fd32282d023e (patch) | |
tree | 8242f4e887c1bd8005fa4c12b9c96034a99f3052 /src/PadInterface.cpp | |
parent | 5269fec9106327db4ada313701ceae67d833e736 (diff) | |
download | ODR-SourceCompanion-830c43f4b462fb2f8d995dd0cdc8fd32282d023e.tar.gz ODR-SourceCompanion-830c43f4b462fb2f8d995dd0cdc8fd32282d023e.tar.bz2 ODR-SourceCompanion-830c43f4b462fb2f8d995dd0cdc8fd32282d023e.zip |
Do not block on missing PAD data
Diffstat (limited to 'src/PadInterface.cpp')
-rw-r--r-- | src/PadInterface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PadInterface.cpp b/src/PadInterface.cpp index 47b9bce..a8a129c 100644 --- a/src/PadInterface.cpp +++ b/src/PadInterface.cpp @@ -45,12 +45,12 @@ void PadInterface::open(const std::string& pad_ident) int flags = fcntl(m_sock, F_GETFL); if (flags == -1) { std::string errstr(strerror(errno)); - throw std::runtime_error("TCP: Could not get socket flags: " + errstr); + throw std::runtime_error("PAD socket: Could not get socket flags: " + errstr); } if (fcntl(m_sock, F_SETFL, flags | O_NONBLOCK) == -1) { std::string errstr(strerror(errno)); - throw std::runtime_error("TCP: Could not set O_NONBLOCK: " + errstr); + throw std::runtime_error("PAD socket: Could not set O_NONBLOCK: " + errstr); } struct sockaddr_un claddr; |