osu-crypto / libOTe

A fast, portable, and easy to use Oblivious Transfer Library
Other
428 stars 107 forks source link

coproto::Socket::close() must be awaited if called. Terminate is being called terminate called without an active exception #145

Closed liubang123123 closed 5 days ago

liubang123123 commented 1 week ago

I have the following error while testing the program: coproto::Socket::close() must be awaited if called. Terminate is being called terminate called without an active exception How to solve it ?

ladnir commented 1 week ago

co_await socket.close();

Or

sync_wait(socket.close());

liubang123123 commented 4 days ago

co_await socket.close();

Or

sync_wait(socket.close());

Thank you,my question has been solved!