return rfb::VNCServerST::REJECT;
}
+ count = vncNotifyQueryConnect();
+ if (count == 0) {
+ *reason = strDup("Unable to query the local user to accept the connection.");
+ return rfb::VNCServerST::REJECT;
+ }
+
queryConnectAddress.replaceBuf(sock->getPeerAddress());
if (!userName)
userName = "(anonymous)";
queryConnectId = (uint32_t)(intptr_t)sock;
queryConnectSocket = sock;
- count = vncNotifyQueryConnect();
- if (count == 0) {
- *reason = strDup("Unable to query the local user to accept the connection.");
- return rfb::VNCServerST::REJECT;
- }
-
return rfb::VNCServerST::PENDING;
}