mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-19 17:21:03 +01:00
Merge branch 'master' into partial_frames
This commit is contained in:
@@ -436,6 +436,8 @@ typedef struct
|
|||||||
|
|
||||||
void ShutDownSocket(){
|
void ShutDownSocket(){
|
||||||
while(!shutdown(socketDescriptor, SHUT_RDWR));
|
while(!shutdown(socketDescriptor, SHUT_RDWR));
|
||||||
|
close(socketDescriptor);
|
||||||
|
socketDescriptor = -1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1082,6 +1082,7 @@ int UDPStandardImplementation::createUDPSockets(){
|
|||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cprintf(BG_RED,"Could not create UDP socket on port %d error: %d\n", port[i], iret);
|
cprintf(BG_RED,"Could not create UDP socket on port %d error: %d\n", port[i], iret);
|
||||||
#endif
|
#endif
|
||||||
|
shutDownUDPSockets();
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user