if (!command.empty()) {
sendMessageToServer(fd.getHandle(), command, readingNonce, writingNonce, false);
- return;
+ return;
}
#ifdef HAVE_LIBEDIT
}
lastline = line;
free(sline);
-
+
if (line == "quit") {
break;
}
auto ret = lua->executeCode<
boost::optional<
boost::variant<
- string,
+ string,
shared_ptr<DownstreamState>,
ClientState*,
std::unordered_map<string, double>
}
}
catch (const std::exception& e) {
- std::cerr << e.what() << std::endl;
+ std::cerr << e.what() << std::endl;
}
}
}
retry:;
try {
auto lua = g_lua.lock();
-
+
g_outputBuffer.clear();
resetLuaSideEffect();
auto ret = lua->executeCode<
boost::optional<
boost::variant<
- string,
+ string,
shared_ptr<DownstreamState>,
ClientState*,
std::unordered_map<string, double>