diff --git a/firebase/decorators.py b/firebase/decorators.py index 66d0a11..1db2079 100644 --- a/firebase/decorators.py +++ b/firebase/decorators.py @@ -14,7 +14,9 @@ def wrapped(*args, **kwargs): kwargs['connection'] = connection else: connection = kwargs['connection'] - connection.timeout = timeout + + if not getattr(connection, 'timeout', False): + connection.timeout = timeout connection.headers.update({'Content-type': 'application/json'}) return f(*args, **kwargs) return wraps(f)(wrapped)