diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-11-03 19:42:54 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-11-03 19:42:54 +0000 |
commit | 405ad9e58bbb1be771d777f00b253e03061f6b2e (patch) | |
tree | 30737ecec65435621fc12eca129c2e2b6d1719c3 /src/main.c | |
parent | 16335ba0976077e2fbc326afe66cc50efe622b6b (diff) | |
download | mpd-405ad9e58bbb1be771d777f00b253e03061f6b2e.tar.gz mpd-405ad9e58bbb1be771d777f00b253e03061f6b2e.tar.xz mpd-405ad9e58bbb1be771d777f00b253e03061f6b2e.zip |
now one can specify multiple bind_to_addresses
git-svn-id: https://svn.musicpd.org/mpd/trunk@2501 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c index 2160a1ccd..bb1146cb0 100644 --- a/src/main.c +++ b/src/main.c @@ -226,12 +226,7 @@ void establishListen(Options * options) { exit(EXIT_FAILURE); } - if(options->createDB <= 0 && !options->updateDB && - (listenSocket = establish(port))<0) - { - ERROR("error binding port\n"); - exit(EXIT_FAILURE); - } + if(options->createDB <= 0 && !options->updateDB) establish(port); } void changeToUser(Options * options) { @@ -453,7 +448,7 @@ int main(int argc, char * argv[]) { playerKill(); freeAllInterfaces(); - close(listenSocket); + closeAllListenSockets(); closeMp3Directory(); closeTables(); finishPlaylist(); |