Skip to content

Commit fdff9a7

Browse files
committed
buffer size cannot be 0
1 parent b596596 commit fdff9a7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyradio/player.py

+2
Original file line numberDiff line numberDiff line change
@@ -3587,6 +3587,8 @@ def delay(self, a_delay):
35873587
x = int(a_delay)
35883588
except ValueError:
35893589
return
3590+
if x == 0:
3591+
return
35903592

35913593
if self._player_name == 'vlc':
35923594
self._data['vlc'][1] = str(x)

pyradio/radio.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2139,8 +2139,8 @@ def playSelection(self, restart=False):
21392139
self._click_station()
21402140

21412141
def _enable_player_crash_detection(self):
2142-
if logger.isEnabledFor(logging.INFO):
2143-
logger.info('Enabling crash detection')
2142+
# if logger.isEnabledFor(logging.INFO):
2143+
# logger.info('Enabling crash detection')
21442144
self.detect_if_player_exited = True
21452145

21462146
def _click_station(self):

0 commit comments

Comments
 (0)