From ceb9b1f6ec6378c83566af0029ddefcc825ba6d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Sun, 14 Apr 2019 00:48:13 +0200 Subject: Remove unnecessary condition check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit According to parent "if" condition this is never the case Signed-off-by: Amadeusz Sławiński --- src/attacher.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/attacher.c b/src/attacher.c index 01e4b9d..4765b94 100644 --- a/src/attacher.c +++ b/src/attacher.c @@ -235,8 +235,6 @@ int Attach(int how) pause(); /* wait for SIGCONT */ xsignal(SIGCONT, SIG_DFL); ContinuePlease = false; - if (how != MSG_ATTACH) - return 0; /* we detached it. jw. */ sleep(1); /* we dont want to overrun our poor backend. jw. */ if ((lasts = MakeClientSocket(0)) == -1) Panic(0, "Cannot contact screen again. Sigh."); -- cgit v1.2.1