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

Francois Gouget fgouget at codeweavers.com
Tue Mar 26 07:14:12 CDT 2013


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

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$/)
   {
-- 
1.7.10.4




More information about the wine-patches mailing list