Skip to content

Commit c2125d0

Browse files
committed
This should fix issue with disconnect after event processing as shown by Adriano in firebird-devel
(using inet in examples/interfaces/08.events.cpp)
1 parent ccf073a commit c2125d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/remote/inet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,7 @@ static void disconnect(rem_port* port)
18051805
SOCLOSE(port->port_channel);
18061806
}
18071807

1808-
if (port->port_thread_guard && port->port_events_thread.isCurrent())
1808+
if (port->port_thread_guard && !port->port_events_thread.isCurrent())
18091809
port->port_thread_guard->setWait(std::move(port->port_events_thread));
18101810
else
18111811
port->releasePort();

0 commit comments

Comments
 (0)