Only call ws_client_free once all scheduled events have triggered
Fixes #209. A WS client socket closure could cause Webdis to schedule the send of a closing frame, leading to both EV_READ and EV_WRITE scheduled events. They would both fail and each lead to a call to ws_client_free, causing a double free that ends in a crash.master
parent
55128ae263
commit
887e0ec73f
Loading…
Reference in New Issue