mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
Merge pull request #10915 from akallabeth/reconnect-fix
[core,freerdp] fix automatic reconnect after auth
This commit is contained in:
@@ -193,12 +193,7 @@ BOOL freerdp_connect(freerdp* instance)
|
||||
WINPR_ASSERT(rdp);
|
||||
WINPR_ASSERT(rdp->settings);
|
||||
|
||||
if (rc < 0)
|
||||
return FALSE;
|
||||
|
||||
if (rc == 0)
|
||||
goto freerdp_connect_finally;
|
||||
|
||||
if (rc > 0)
|
||||
/* Pointers might have changed in between */
|
||||
{
|
||||
rdp_update_internal* up = update_cast(rdp->update);
|
||||
@@ -211,10 +206,7 @@ BOOL freerdp_connect(freerdp* instance)
|
||||
if (up->pcap_rfx)
|
||||
up->dump_rfx = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
if (rc > 0)
|
||||
{
|
||||
pointer_cache_register_callbacks(instance->context->update);
|
||||
status = IFCALLRESULT(TRUE, instance->PostConnect, instance);
|
||||
instance->ConnectionCallbackState = CLIENT_STATE_POSTCONNECT_PASSED;
|
||||
|
||||
Reference in New Issue
Block a user