Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit ae52100

Browse files
author
kirankumar-ravuri
authored
Fix for incorrect checking of error in RawTransport (#525)
1 parent a9a0bd4 commit ae52100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/core/owt_base/RawTransport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void RawTransport<prot>::listenTo(uint32_t minPort, uint32_t maxPort)
225225
m_socket.tcp.acceptor->open(tcp::v4());
226226
m_socket.tcp.acceptor->bind(tcp::endpoint(tcp::v4(), port), ec);
227227

228-
if (ec != boost::system::errc::address_in_use) {
228+
if (ec.value() != boost::system::errc::address_in_use) {
229229
break;
230230
}
231231
if (m_socket.tcp.acceptor->is_open()) {

0 commit comments

Comments
 (0)