reset the loop on close (fix #152)
This commit is contained in:
parent
8a93cb6e31
commit
0186f0444c
@ -279,7 +279,7 @@ public:
|
||||
*/
|
||||
void close() {
|
||||
auto err = uv_loop_close(loop.get());
|
||||
if(err) { publish(ErrorEvent{err}); }
|
||||
return err ? publish(ErrorEvent{err}) : loop.reset();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user