if (pthread_create(&thread, NULL, Runner, this))
{
errorStr = "Cannot create thread.";
if (pthread_create(&thread, NULL, Runner, this))
{
errorStr = "Cannot create thread.";
if (connect(sock, reinterpret_cast<struct sockaddr *>(&addr), sizeof(addr)))
{
errorStr = "Cannot connect.";
if (connect(sock, reinterpret_cast<struct sockaddr *>(&addr), sizeof(addr)))
{
errorStr = "Cannot connect.";