upd: fix unwanted extra line
This commit is contained in:
@ -6,7 +6,6 @@
|
|||||||
#include "bs-utility.h"
|
#include "bs-utility.h"
|
||||||
#include "schedule.h"
|
#include "schedule.h"
|
||||||
void BookStoreMain(bool is_server, std::string config_dir) {
|
void BookStoreMain(bool is_server, std::string config_dir) {
|
||||||
std::ios::sync_with_stdio(false);
|
|
||||||
if (!is_server) {
|
if (!is_server) {
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
BlockingStringStream input;
|
BlockingStringStream input;
|
||||||
@ -54,8 +53,9 @@ void BookStoreMain(bool is_server, std::string config_dir) {
|
|||||||
output.getline(tmp);
|
output.getline(tmp);
|
||||||
std::cout << tmp << std::endl;
|
std::cout << tmp << std::endl;
|
||||||
// std::cerr << tmp << std::endl;
|
// std::cerr << tmp << std::endl;
|
||||||
|
debugPrint(tmp);
|
||||||
}
|
}
|
||||||
std::cout.flush();
|
// std::cout.flush();
|
||||||
}
|
}
|
||||||
input.readlock();
|
input.readlock();
|
||||||
input << "#CloseSession " << SessionToken << ' ' << AuthenticationKey
|
input << "#CloseSession " << SessionToken << ' ' << AuthenticationKey
|
||||||
@ -65,6 +65,7 @@ void BookStoreMain(bool is_server, std::string config_dir) {
|
|||||||
backend_thread.join();
|
backend_thread.join();
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
std::ios::sync_with_stdio(false);
|
||||||
std::cin.tie(nullptr);
|
std::cin.tie(nullptr);
|
||||||
std::cout.rdbuf(nullptr);
|
std::cout.rdbuf(nullptr);
|
||||||
BlockingStringStream input;
|
BlockingStringStream input;
|
||||||
|
Reference in New Issue
Block a user