]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Fixed amount of local connections be reusing mpd-mpc connections
authorManiacikarus <maniacikarus@ipfire.org>
Sun, 7 Dec 2008 19:02:42 +0000 (20:02 +0100)
committerManiacikarus <maniacikarus@ipfire.org>
Sun, 7 Dec 2008 19:02:42 +0000 (20:02 +0100)
config/mpfire/perl/Audio/MPD.pm
lfs/mpfire

index e1c00db448178a985482eeef0fcaf059904ef82b..0bfbc485ee30cd423c806e242675162387f82190 100644 (file)
@@ -30,8 +30,8 @@ __PACKAGE__->mk_accessors(
 
 our $VERSION = '0.19.1';
 
 
 our $VERSION = '0.19.1';
 
-Readonly our $REUSE => 1;
-Readonly our $ONCE  => 0;
+Readonly our $REUSE => 0;
+Readonly our $ONCE  => 1;
 
 our @EXPORT = qw[ $REUSE $ONCE ];
 
 
 our @EXPORT = qw[ $REUSE $ONCE ];
 
@@ -50,7 +50,7 @@ our @EXPORT = qw[ $REUSE $ONCE ];
 #   - conntype => $type     : how the connection to mpd server is handled. it can be
 #               either $REUSE: reuse the same connection
 #                    or $ONCE: open a new connection per command (default)
 #   - conntype => $type     : how the connection to mpd server is handled. it can be
 #               either $REUSE: reuse the same connection
 #                    or $ONCE: open a new connection per command (default)
-#   
+#
 sub new {
     my ($class, %opts) = @_;
 
 sub new {
     my ($class, %opts) = @_;
 
@@ -66,7 +66,7 @@ sub new {
         _host     => $host,
         _port     => $port,
         _password => $password,
         _host     => $host,
         _port     => $port,
         _password => $password,
-        _conntype => exists $opts{conntype} ? $opts{conntype} : $ONCE,
+        _conntype => exists $opts{conntype} ? $opts{conntype} : $REUSE,
     };
     bless $self, $class;
 
     };
     bless $self, $class;
 
index 171f04ae64984741927cd1c7b22b6f14f66c0aa9..c61c77fabe090313e71008b2ec0ad864b9248eb7 100644 (file)
@@ -30,7 +30,7 @@ THISAPP    = mpfire-$(VER)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = mpfire
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = mpfire
-PAK_VER    = 4
+PAK_VER    = 5
 
 DEPS       = "mpd mpc alsa libshout libogg libmad libid3tag libvorbis"
 
 
 DEPS       = "mpd mpc alsa libshout libogg libmad libid3tag libvorbis"