Skip to content

Commit f3d4937

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 6ff1f92 commit f3d4937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/remote/inet.cpp

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

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

0 commit comments

Comments
 (0)