Skip to content

Commit 4d7bc30

Browse files
committed
remove connection reset after a query
1 parent 5c67f8f commit 4d7bc30

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

source/query.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ bool bad_result(PGresult* result) {
6060
status == PGRES_FATAL_ERROR;
6161
}
6262

63-
static bool reseted = false;
64-
6563
void async_postgres::process_queries(GLua::ILuaInterface* lua,
6664
Connection* state) {
6765
if (state->queries.empty()) {
@@ -86,12 +84,6 @@ void async_postgres::process_queries(GLua::ILuaInterface* lua,
8684
query.flushed = PQflush(state->conn.get()) == 0;
8785
}
8886

89-
if (query.flushed && !reseted) {
90-
reset(lua, state, {});
91-
reseted = true;
92-
return;
93-
}
94-
9587
if (!poll_query(state->conn.get(), query)) {
9688
query_failed(lua, state->conn.get(), query);
9789
state->queries.pop();

0 commit comments

Comments
 (0)