testbot/TestAgent: Optimize GetVersion().

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


To get the server version we just need to connect, we don't need to send a full RPC.
---
 testbot/lib/WineTestBot/TestAgent.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm
index 4aaaea0..f542991 100644
--- a/testbot/lib/WineTestBot/TestAgent.pm
+++ b/testbot/lib/WineTestBot/TestAgent.pm
@@ -987,8 +987,8 @@ sub GetVersion($)
 
   if (!$self->{agentversion})
   {
-    # Force a connection
-    $self->Ping();
+    # Retrieve the server version
+    $self->_Connect();
   }
   # And return the version we got.
   # If the connection failed it will be undef as expected.
-- 
1.7.10.4



More information about the wine-patches mailing list