From 56b5db14966cd8c49caa4912405d2d932ab51475 Mon Sep 17 00:00:00 2001 From: Kaliko Jack Date: Tue, 26 Feb 2019 16:35:48 +0100 Subject: [PATCH] Update changelog and copyright header --- CHANGES.txt | 2 ++ musicpd.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index e8f3380..a134a0c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,8 @@ python-musicpd Changes List Changes in 0.4.4 UNRELEASED --------------------------- +* Add tcp socket timeout, exposed in musicpd.CONNECTION_TIMEOUT, defaults to 5s + (Thanks to Bart Van Loon) * Add partition commands (Thanks Naglis Jonaitis) * Add listfiles command * Add tagtypes (disable|enable|clear|all) commands diff --git a/musicpd.py b/musicpd.py index e8f7863..383ba09 100644 --- a/musicpd.py +++ b/musicpd.py @@ -2,6 +2,7 @@ # Copyright (C) 2008-2010 J. Alexander Treuman # Copyright (C) 2012-2019 Kaliko Jack # Copyright (C) 2019 Naglis Jonaitis +# Copyright (C) 2019 Bart Van Loon # # python-musicpd is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by @@ -29,9 +30,9 @@ ERROR_PREFIX = "ACK " SUCCESS = "OK" NEXT = "list_OK" VERSION = '0.4.4' - CONNECTION_TIMEOUT = 5 # seconds before a tcp connection attempt times out + def iterator_wrapper(func): """Decorator handling iterate option""" @wraps(func) -- 2.39.2