[PATCH] compositor-rdp: Remove unneeded client->Close call

Jason Ekstrand jason at jlekstrand.net
Fri Apr 4 10:22:41 PDT 2014


The client->Close call is unneeded as that is already implied by returning
FALSE.

---
 src/compositor-rdp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c
index fc7dfb2..aecc0a8 100644
--- a/src/compositor-rdp.c
+++ b/src/compositor-rdp.c
@@ -681,7 +681,6 @@ xf_peer_post_connect(freerdp_peer* client)
 			if (!settings->DesktopResize) {
 				/* peer does not support desktop resize */
 				weston_log("%s: client doesn't support resizing, closing connection\n", __FUNCTION__);
-				client->Close(client);
 				return FALSE;
 			} else {
 				settings->DesktopWidth = output->base.width;
-- 
1.9.0



More information about the wayland-devel mailing list