* Steve Bernard, Jr shaped the electrons to say...
this legwork. I've been trying to track it down myself for a while.
I did notice it seemed to happen much more often on Debian-based Linux
distros than it did when I tried Fedora (but it still happened once in
a while).
Does this patch fix the issue?
-D
--
On second thought, let's not go to Camelot. It is a silly place.
=== Slim/Player/Source.pm
==================================================================
--- Slim/Player/Source.pm (revision 16242)
+++ Slim/Player/Source.pm (local)
@@ -1774,12 +1774,20 @@
if (!defined($readlen)) {
- if ($! != EWOULDBLOCK) {
+ if ($! == EWOULDBLOCK) {
+
+ $::d_source_v && msg("would have
blocked, will try again later\n");
+ return undef;
+
+ } elsif ($! == EINTR) {
+
+ $::d_source && msg("Got EINTR - will
try again later.\n");
+ return undef;
+
+ } else {
+
$::d_source && msg("readlen undef:
($!)" . ($! + 0) . "\n");
$endofsong = 1;
- } else {
- $::d_source_v && msg("would have
blocked, will try again later\n");
- return undef;
}
} elsif ($readlen == 0) {
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta