X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Ftools%2Fsysdb%2Fcommand.c;fp=src%2Ftools%2Fsysdb%2Fcommand.c;h=5044c0e5213aac42cb4456cd9dafe465264f4010;hp=f9195a644057ee9b2c849f4f764f4ef6bacd65d4;hb=865b0a3b20fe3c1eb014e22e4b1f45f4fa931ce5;hpb=a7596ce606438569d2d7799ec7d68831f79897da diff --git a/src/tools/sysdb/command.c b/src/tools/sysdb/command.c index f9195a6..5044c0e 100644 --- a/src/tools/sysdb/command.c +++ b/src/tools/sysdb/command.c @@ -174,13 +174,10 @@ sdb_command_exec(sdb_input_t *input) --query_len; if (sdb_client_eof(input->client)) { - sdb_client_close(input->client); - if (sdb_client_connect(input->client, input->user)) { - printf("Failed to reconnect to SysDBd.\n"); + if (sdb_input_reconnect()) { clear_query(input); return NULL; } - printf("Successfully reconnected to SysDBd.\n"); } if (query_len) {