Remove superfluous handle assignment in QLocalSocket::connectToServer()
The handle is already assigned by QLocalSocket::setSocketDescriptor(). Change-Id: I695cfa31f3d14a3a9eef2fb79d23e9651616e8a8 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
411398aab4
commit
ea4c4691f7
@ -183,10 +183,8 @@ void QLocalSocket::connectToServer(OpenMode openMode)
|
||||
}
|
||||
|
||||
// we have a valid handle
|
||||
if (setSocketDescriptor((qintptr)localSocket, ConnectedState, openMode)) {
|
||||
d->handle = localSocket;
|
||||
if (setSocketDescriptor((qintptr)localSocket, ConnectedState, openMode))
|
||||
emit connected();
|
||||
}
|
||||
}
|
||||
|
||||
// This is reading from the buffer
|
||||
|
Loading…
Reference in New Issue
Block a user