Emit error if trying to connect while socket is connected or connecting.
authorJonas M. Gastal <jgastal@profusion.mobi>
Tue, 27 Dec 2011 20:00:18 +0000 (18:00 -0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Jan 2012 17:46:52 +0000 (18:46 +0100)
commitb49467220811059ea85f1a31eeecb6797dc753e2
tree495ae79fd5746e2e8311ee2fbb2c99aa5dfad2ae
parentf821d6352e384a737c82a0db903104ec4f8611bd
Emit error if trying to connect while socket is connected or connecting.

This applies to both local and abstract sockets.

Task-number: QTBUG-22450
Change-Id: I5c58d68da95ffb6bcde5be510853359b288e5984
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
src/network/socket/qabstractsocket.cpp
src/network/socket/qabstractsocket.h
src/network/socket/qlocalsocket.cpp
src/network/socket/qlocalsocket.h
src/network/socket/qlocalsocket_tcp.cpp
src/network/socket/qlocalsocket_unix.cpp
src/network/socket/qlocalsocket_win.cpp