|
@@ -2953,6 +2953,9 @@ connection_handle_event_cb(struct bufferevent *bufev, short event, void *arg)
|
|
|
{
|
|
{
|
|
|
connection_t *conn = arg;
|
|
connection_t *conn = arg;
|
|
|
(void) bufev;
|
|
(void) bufev;
|
|
|
|
|
+ if (conn->marked_for_close)
|
|
|
|
|
+ return;
|
|
|
|
|
+
|
|
|
if (event & BEV_EVENT_CONNECTED) {
|
|
if (event & BEV_EVENT_CONNECTED) {
|
|
|
tor_assert(connection_state_is_connecting(conn));
|
|
tor_assert(connection_state_is_connecting(conn));
|
|
|
if (connection_finished_connecting(conn)<0)
|
|
if (connection_finished_connecting(conn)<0)
|