From 017e85c8f889d633248e9cbacef2e58509065cf6 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Wed, 30 Dec 2015 22:25:00 +0000 Subject: [PATCH] fix emit variable overwite --- steam/util/events.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/steam/util/events.py b/steam/util/events.py index 257eaa0..845085e 100644 --- a/steam/util/events.py +++ b/steam/util/events.py @@ -20,10 +20,11 @@ class EventEmitter(object): if isinstance(callback, AsyncResult): self.remove_listener(event, callback) + result = args if len(args) == 1: - args = args[0] + result = args[0] - callback.set(args) + callback.set(result) else: gevent.spawn(callback, *args)