Skip to content

Commit f025e8e

Browse files
committed
Fixed huge processor load issue due endless loop
1 parent 3ac0583 commit f025e8e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

builddep.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fi
1616

1717
if [ -z "$PKGVERSION" ]
1818
then
19-
PKGVERSION="0.3.0"
19+
PKGVERSION="0.3.1"
2020
fi
2121

2222
if [ -z "$DEBVER" ]

changelog.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
* Fixed uncatched MPC exception ConnectionResetError
77
* Fixed hanging cdsp socket on shutdown of cdsp by closing cdsp socket on sighup
88

9-
, ConnectionResetError
9+
0.3.1
10+
* Fixed bug that caused serious processor load

mpd2cdspvolume.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
from camilladsp import CamillaConnection
4343

44-
VERSION = "0.3.0"
44+
VERSION = "0.3.1"
4545

4646
def lin_vol_curve(perc: int, dynamic_range: float= 60.0) -> float:
4747
'''
@@ -112,14 +112,14 @@ def _handle_mpd_status(self, status: dict):
112112
self._callback(volume_db)
113113
self._volume = volume
114114
else:
115-
return True
115+
return False
116116

117117
return True
118118

119119
def run_monitor(self):
120120
while self._kill_now is False:
121121
try:
122-
changed = self._client.idle()
122+
changed = self._client.idle('mixer')
123123
if 'mixer' in changed:
124124
status= self._client.status()
125125
# make sure that it is in sync with the latest state of the volume, by repeating untill we get the same volume

0 commit comments

Comments
 (0)