Apply suggestions from code review

Co-authored-by: Mina Galić <me+github@igalic.co>
This commit is contained in:
Max Leiter 2023-02-13 20:50:16 -08:00 committed by GitHub
parent 243cb10e2a
commit 26b7fbf2c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,9 +120,9 @@ class Identification {
if (!connection.socket.remotePort || !connection.socket.localPort) {
// Race condition: this can happen when more than one socket gets disconnected at
// once, since we `refresh()` for each one being added/removed. This results
// in there possibly be one or more disconnected sockets remaining when we get here.
// in there possibly being one or more disconnected sockets remaining when we get here.
//
// Simply skip this socket and not crash the server.
// Simply skip this socket and do not crash the server.
log.warn("oidentd: socket has no remote or local port?");
return;
}