aboutsummaryrefslogtreecommitdiffstats
path: root/src/interface.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-07-12 14:58:26 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-07-12 14:58:26 +0000
commit1af2272920c64fe8ed463eea9475dc18058bf4ad (patch)
tree4e843581d478cefb01ad412799da38c38a931af1 /src/interface.c
parent25c923809a558583e798cac159fc668f1d8601cc (diff)
downloadmpd-1af2272920c64fe8ed463eea9475dc18058bf4ad.tar.gz
mpd-1af2272920c64fe8ed463eea9475dc18058bf4ad.tar.xz
mpd-1af2272920c64fe8ed463eea9475dc18058bf4ad.zip
potential fixes for NHI\'s bugs
git-svn-id: https://svn.musicpd.org/mpd/trunk@1848 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interface.c b/src/interface.c
index 29e372a5e..196ff7706 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -49,7 +49,7 @@
#define INTERFACE_LIST_MODE_END "command_list_end"
#define INTERFACE_DEFAULT_OUT_BUFFER_SIZE 4096
-int interface_max_connections;
+int interface_max_connections = 0;
int interface_timeout;
unsigned long long interface_max_command_list_size;
unsigned long long interface_max_output_buffer_size;
@@ -472,6 +472,8 @@ void freeAllInterfaces() {
closeAllInterfaces();
free(interfaces);
+
+ interface_max_connections = 0;
}
void closeOldInterfaces() {