[PATCH] testbot/TestAgent: Don't wait for the ssh process if there is none.
Francois Gouget
fgouget at codeweavers.com
Sat Sep 7 23:05:16 CDT 2019
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/lib/WineTestBot/TestAgent.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm
index e6b0e0f6..ca81283d 100644
--- a/testbot/lib/WineTestBot/TestAgent.pm
+++ b/testbot/lib/WineTestBot/TestAgent.pm
@@ -129,7 +129,7 @@ sub Disconnect($)
# This may close the SSH channel ($self->{fd}) as a side-effect,
# which will avoid undue delays.
$self->{ssh} = undef;
- waitpid($self->{sshpid}, 0);
+ waitpid($self->{sshpid}, 0) if ($self->{sshpid});
$self->{sshpid} = undef;
}
if ($self->{fd})
--
2.20.1
More information about the wine-devel
mailing list