Francois Gouget : testbot/TestAgent: Fix Wait() to not depend on other RPCs to retrieve the server version.

Alexandre Julliard julliard at winehq.org
Tue Mar 26 11:52:22 CDT 2013


Module: tools
Branch: master
Commit: 6032b11f0b005fcd489445ff0f66ef7b4e67ca3f
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=6032b11f0b005fcd489445ff0f66ef7b4e67ca3f

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Mar 26 13:14:12 2013 +0100

testbot/TestAgent: Fix Wait() to not depend on other RPCs to retrieve the server version.

---

 testbot/lib/WineTestBot/TestAgent.pm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm
index bce1a78..4aaaea0 100644
--- a/testbot/lib/WineTestBot/TestAgent.pm
+++ b/testbot/lib/WineTestBot/TestAgent.pm
@@ -1107,6 +1107,9 @@ sub Wait($$$)
   # Add 1 second for the reply to come back
   my $OldTimeout = $self->SetTimeout($Timeout + 1) if ($Timeout);
 
+  # Make sure we have the server version
+  return undef if (!$self->{agentversion} and !$self->_Connect());
+
   # Send the command
   if ($self->{agentversion} =~ / 1\.0$/)
   {




More information about the wine-cvs mailing list