diff options
| author | Mikkel Kroman | 2014-08-20 21:54:33 +0200 |
|---|---|---|
| committer | Mikkel Kroman | 2014-08-20 21:54:33 +0200 |
| commit | 65c49045f33485721103cdeaae63aa2c598235e7 (patch) | |
| tree | e3ca87a4a34b47685cf8cf626fcc5c1d521589e1 | |
| parent | b632543e79f033c7cde7a46bae0ff93f0c690a4c (diff) | |
| download | scripts.irssi.org-65c49045f33485721103cdeaae63aa2c598235e7.tar.bz2 | |
Fixed socket not timing out at specified interval
| -rw-r--r-- | _data/scripts.yaml | 2 | ||||
| -rw-r--r-- | scripts/mpd.pl | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/_data/scripts.yaml b/_data/scripts.yaml index d79a183..be997d7 100644 --- a/_data/scripts.yaml +++ b/_data/scripts.yaml @@ -2400,7 +2400,7 @@ contact: "diozaka@gmx.de, code@aibor.de, mk@maero.dk" description: "print the song you are listening to" filename: "mpd.pl" - modified: "2014-08-20 04:23:10" + modified: "2014-08-20 21:53:24" license: "GPLv2" modules: "IO::Socket" name: "mpd" diff --git a/scripts/mpd.pl b/scripts/mpd.pl index 789bdaf..035aba1 100644 --- a/scripts/mpd.pl +++ b/scripts/mpd.pl @@ -31,6 +31,7 @@ # 0.6: Added some more format directives(time, album) # # Added support for password authentication # # 0.7: Added format directives for bitrate and volume # +# Fixed socket not timing out at specified interval # ####################################################################### use strict; @@ -77,7 +78,7 @@ sub np { Proto => 'tcp', PeerPort => $MPD{'port'}, PeerAddr => $MPD{'host'}, - timeout => $MPD{'timeout'} + Timeout => $MPD{'timeout'} ); if (not $socket) { |
