Francois Gouget : testbot/TestAgent: _SetError() may be called when connecting, that is outside any RPC.
Module: tools Branch: master Commit: 6157405f4a6dd1e45f3ca6aabc78c8750e6e75d2 URL: http://source.winehq.org/git/tools.git/?a=commit;h=6157405f4a6dd1e45f3ca6aab... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Wed Mar 12 14:25:29 2014 +0100 testbot/TestAgent: _SetError() may be called when connecting, that is outside any RPC. --- testbot/lib/WineTestBot/TestAgent.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm index f313984..c138663 100644 --- a/testbot/lib/WineTestBot/TestAgent.pm +++ b/testbot/lib/WineTestBot/TestAgent.pm @@ -212,7 +212,8 @@ sub _SetError($$$) # We did not even manage to connect but record the error anyway $self->{err} = $Msg; } - debug($RpcNames{$self->{rpcid}} || $self->{rpcid}, ": $self->{err}\n"); + my $RpcName = defined $self->{rpcid} ? $RpcNames{$self->{rpcid}} || $self->{rpcid} : "Connect"; + debug("$RpcName: $self->{err}\n"); } sub GetLastError($)
participants (1)
-
Alexandre Julliard