[swift-users] Problem about deleting Swift::Client
Kevin Smith
kevin.smith at isode.com
Thu Jul 30 09:05:22 UTC 2015
Hi Hong,
On 29 Jul 2015, at 03:00, Junyuan Hong <jyhong836 at gmail.com> wrote:
> I’m using Swiften writing a chat client. Does Swiften support multi-Client connection in one SimpleEventLoop? And it seems dangerous to delete a Swift::Client instance at the connected status, what’s the correct way to delete a Swift::Client instance?
As Tobias said, you shouldn’t delete the Client instances until they’ve disconnected and emitted the signal to say so. Also, yes: you can run multiple clients with a single EventLoop.
/K
More information about the swift-users
mailing list