summaryrefslogtreecommitdiffstats
path: root/Sluift
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-03-16 18:51:17 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-03-16 18:51:17 (GMT)
commit2838a65f140269fad84fb61129cf0080d714244f (patch)
treec283701728ed445210d53d0fdd20b1f534095107 /Sluift
parent9b55c094105cc2746dc5e4929d3b7c2cd0956a37 (diff)
downloadswift-2838a65f140269fad84fb61129cf0080d714244f.zip
swift-2838a65f140269fad84fb61129cf0080d714244f.tar.bz2
Sluift: Don't hang until timeout in get_contacts and set_version.
Diffstat (limited to 'Sluift')
-rw-r--r--Sluift/sluift.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Sluift/sluift.cpp b/Sluift/sluift.cpp
index c9189e7..66167b3 100644
--- a/Sluift/sluift.cpp
+++ b/Sluift/sluift.cpp
@@ -225,7 +225,7 @@ static int sluift_client_disconnect(lua_State *L) {
static int sluift_client_set_version(lua_State *L) {
try {
- eventLoop.runUntilEvents();
+ eventLoop.runOnce();
SluiftClient* client = getClient(L);
luaL_checktype(L, 2, LUA_TTABLE);
@@ -247,7 +247,7 @@ static int sluift_client_set_version(lua_State *L) {
static int sluift_client_get_contacts(lua_State *L) {
try {
- eventLoop.runUntilEvents();
+ eventLoop.runOnce();
SluiftClient* client = getClient(L);
Lua::Table contactsTable;