Francois Gouget : testbot/TestAgent: Optimize GetVersion().

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


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

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

testbot/TestAgent: Optimize GetVersion().

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 files 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.




More information about the wine-cvs mailing list