From 9c40b777f3dded7a3e6c03bb8c24ef43e7ae84c3 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 19 Sep 2009 05:16:33 +0000 Subject: [PATCH] Make a copy of the args and kwargs when making a daemon call in classic mode.. This makes it's behaviour to the same as when making a RPC --- deluge/ui/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/client.py b/deluge/ui/client.py index 664f45c15..83458bfa2 100644 --- a/deluge/ui/client.py +++ b/deluge/ui/client.py @@ -430,8 +430,11 @@ class DaemonClassicProxy(DaemonProxy): d.errback(e) return d + _args = list(args) + _kwargs = dict(kwargs) + try: - result = m(*args, **kwargs) + result = m(*_args, **_kwargs) except Exception, e: d.errback(e) else: