| 10082 | |
| 10083 | |
| 10084 | void ClientPortsCleanup::closePort(rem_port* port) |
| 10085 | { |
| 10086 | RefMutexEnsureUnlock guard(*port->port_sync, FB_FUNCTION); |
| 10087 | |
| 10088 | if (port->port_flags & PORT_disconnect) |
| 10089 | return; |
| 10090 | |
| 10091 | if (guard.tryEnter()) |
| 10092 | Remote::finalize(port); |
| 10093 | else |
| 10094 | PortsCleanup::closePort(port); |
| 10095 | } |
| 10096 | |
| 10097 | |
| 10098 | RmtAuthBlock::RmtAuthBlock(const AuthReader::AuthBlock& aBlock) |