X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=stream.cpp;h=ab08a0f7ad85f34d458e9c41b40bbf5d7ccfe721;hp=83257e9046d3a9cbbd29756f100bedaed069df45;hb=5605c88a27fcf64ea8f6fd6cbb52dada73856ee0;hpb=71fc5575037bead8b6e927a1fffd199e4fc4514b diff --git a/stream.cpp b/stream.cpp index 83257e9..ab08a0f 100644 --- a/stream.cpp +++ b/stream.cpp @@ -31,13 +31,7 @@ Stream::Stream(const string &stream_id, size_t backlog_size, Encoding encoding) Stream::~Stream() { if (data_fd != -1) { - int ret; - do { - ret = close(data_fd); - } while (ret == -1 && errno == EINTR); - if (ret == -1) { - log_perror("close"); - } + safe_close(data_fd); } }