wait for reader
This commit is contained in:
parent
7d9d5fad53
commit
57f7e69d4e
|
@ -49,6 +49,9 @@ std::string Crypt::encryptForChat(int64_t chat, const std::string& message) {
|
|||
reader.start();
|
||||
|
||||
proc->waitFor(std::chrono::seconds(4));
|
||||
proc->termKill(std::chrono::milliseconds(1));
|
||||
|
||||
reader.waitFor();
|
||||
|
||||
if(out.size() > Footer.size() + Header.size() ) {
|
||||
out.resize(out.size() - Footer.size());
|
||||
|
|
Loading…
Reference in New Issue