Commit c2ea3e9a authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

r13406@catbus: nickm | 2007-06-13 17:05:30 -0400

 Oops; linked connections get read/write events too.


svn:r10596
parent 64626836
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ connection_add(connection_t *conn)
  conn->conn_array_index = smartlist_len(connection_array);
  smartlist_add(connection_array, conn);

  if (conn->s >= 0) {
  if (conn->s >= 0 || conn->linked) {
    conn->read_event = tor_malloc_zero(sizeof(struct event));
    conn->write_event = tor_malloc_zero(sizeof(struct event));
    event_set(conn->read_event, conn->s, EV_READ|EV_PERSIST,