diff options
author | Remko Tronçon <git@el-tramo.be> | 2014-01-18 10:13:58 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2014-01-18 10:44:42 (GMT) |
commit | 60c07599cd3ea8a5befbb3ce5e1e7837b875f2d6 (patch) | |
tree | 264eed12251cfc4824207784987fa9a96580c259 | |
parent | a3ee944ceb20bde940699fdeb7cb7f5a18e5a44f (diff) | |
download | swift-60c07599cd3ea8a5befbb3ce5e1e7837b875f2d6.zip swift-60c07599cd3ea8a5befbb3ce5e1e7837b875f2d6.tar.bz2 |
Sluift: Ensure all events have been processed before disconnecting
This avoids errors when disconnecting the client while there are still
elements waiting.
Change-Id: I005ec3f14c138b76f6381f1a89b3ee250a40777f
-rw-r--r-- | Sluift/client.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Sluift/client.cpp b/Sluift/client.cpp index 1a64eea..914ab9c 100644 --- a/Sluift/client.cpp +++ b/Sluift/client.cpp @@ -112,6 +112,7 @@ SLUIFT_LUA_FUNCTION_WITH_HELP( "self\n", "" ) { + Sluift::globals.eventLoop.runOnce(); getClient(L)->disconnect(); return 0; } |