diff options
Diffstat (limited to 'Swiften/Component/ComponentSession.cpp')
| -rw-r--r-- | Swiften/Component/ComponentSession.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/Swiften/Component/ComponentSession.cpp b/Swiften/Component/ComponentSession.cpp index d15d51c..967e68d 100644 --- a/Swiften/Component/ComponentSession.cpp +++ b/Swiften/Component/ComponentSession.cpp @@ -24,7 +24,7 @@ ComponentSession::~ComponentSession() {  void ComponentSession::start() {  	stream->onStreamStartReceived.connect(boost::bind(&ComponentSession::handleStreamStart, shared_from_this(), _1));  	stream->onElementReceived.connect(boost::bind(&ComponentSession::handleElement, shared_from_this(), _1)); -	stream->onError.connect(boost::bind(&ComponentSession::handleStreamError, shared_from_this(), _1)); +	stream->onClosed.connect(boost::bind(&ComponentSession::handleStreamError, shared_from_this(), _1));  	assert(state == Initial);  	state = WaitingForStreamStart; @@ -98,7 +98,7 @@ void ComponentSession::finishSession(boost::shared_ptr<Swift::Error> error) {  	stream->setWhitespacePingEnabled(false);  	stream->onStreamStartReceived.disconnect(boost::bind(&ComponentSession::handleStreamStart, shared_from_this(), _1));  	stream->onElementReceived.disconnect(boost::bind(&ComponentSession::handleElement, shared_from_this(), _1)); -	stream->onError.disconnect(boost::bind(&ComponentSession::handleStreamError, shared_from_this(), _1)); +	stream->onClosed.disconnect(boost::bind(&ComponentSession::handleStreamError, shared_from_this(), _1));  	if (stream->isAvailable()) {  		stream->writeFooter();  	} | 
 Swift
 Swift