Module: tools Branch: master Commit: 45f09b1fdeb3b905bc877f394f529c059421f06c URL: https://source.winehq.org/git/tools.git/?a=commit;h=45f09b1fdeb3b905bc877f39...
Author: Francois Gouget fgouget@codeweavers.com Date: Sun Sep 8 06:05:16 2019 +0200
testbot/TestAgent: Don't wait for the ssh process if there is none.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 a0a5efe..9d33f0a 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})