mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 01:00:02 +02:00
proper freeng after udpsocket shutdown
This commit is contained in:
parent
a26cbced57
commit
a4a0ea508e
@ -443,6 +443,8 @@ typedef struct
|
||||
|
||||
void ShutDownSocket(){
|
||||
while(!shutdown(socketDescriptor, SHUT_RDWR));
|
||||
close(socketDescriptor);
|
||||
socketDescriptor = -1;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1077,6 +1077,7 @@ int UDPStandardImplementation::createUDPSockets(){
|
||||
#ifdef VERBOSE
|
||||
cprintf(BG_RED,"Could not create UDP socket on port %d error: %d\n", port[i], iret);
|
||||
#endif
|
||||
shutDownUDPSockets();
|
||||
return FAIL;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user