[FX-552] connection.cpp aborts when it tries to shutdown a socket - Fix8 JIRA

connection.cpp aborts when it tries to shutdown a socket

Description

Application core dumps when not connected to server (I have no way of knowing it is not connected)

void Connection::stop()
{
scout_debug << "Connection::stop()";
_writer.stop();
_writer.join();
_reader.stop();
_reader.join();
_reader.socket()>shutdown(); <-- core dump happens here

}

Called from:
void Session::stop()

Environment

Linux, Ubuntu Fix8Pro/dev connection.cpp

Status

Assignee

David Dight

Reporter

David Boosalis

Labels

Branch

dev

Products

All

Components

Fix versions

Affects versions

2.2.0

Priority

Major