diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-01-22 14:00:01 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-01-22 14:00:01 (GMT) |
commit | df029015f47f284ced01b8d1f11c4d48cc2f2564 (patch) | |
tree | 455d47a7fcb0d9d90bef6a6c63bdc7120eaec286 /Swiften/Component/ComponentSession.h | |
parent | 940cb5e744564ec15b805a9e5388e1fa5c60d703 (diff) | |
download | swift-contrib-df029015f47f284ced01b8d1f11c4d48cc2f2564.zip swift-contrib-df029015f47f284ced01b8d1f11c4d48cc2f2564.tar.bz2 |
Close connection properly before quitting.
Diffstat (limited to 'Swiften/Component/ComponentSession.h')
-rw-r--r-- | Swiften/Component/ComponentSession.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Swiften/Component/ComponentSession.h b/Swiften/Component/ComponentSession.h index cbfa227..dbe6e27 100644 --- a/Swiften/Component/ComponentSession.h +++ b/Swiften/Component/ComponentSession.h @@ -27,6 +27,7 @@ namespace Swift { WaitingForStreamStart, Authenticating, Initialized, + Finishing, Finished }; @@ -68,7 +69,7 @@ namespace Swift { void handleElement(boost::shared_ptr<Element>); void handleStreamStart(const ProtocolHeader&); - void handleStreamError(boost::shared_ptr<Swift::Error>); + void handleStreamClosed(boost::shared_ptr<Swift::Error>); bool checkState(State); @@ -76,6 +77,7 @@ namespace Swift { JID jid; String secret; boost::shared_ptr<SessionStream> stream; + boost::shared_ptr<Swift::Error> error; State state; }; } |