diff options
Diffstat (limited to 'src/main.c')
-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(); |