Browse Source

Stop the timer properly

pull/1381/head
Max Lv 7 years ago
parent
commit
087bfe7f91
2 changed files with 1 additions and 19 deletions
  1. 19
      .travis.yml
  2. 1
      src/local.c

19
.travis.yml

@ -35,9 +35,6 @@ script:
- ./autogen.sh - ./autogen.sh
- ./configure && make - ./configure && make
- cd build && cmake ../ && make - cd build && cmake ../ && make
# Test cmake using our builder
# - cd docker/build && docker build -f builder.Dockerfile -t builder . && cd -
# - docker run --rm -it -v $PWD:/src -w /src builder sh -c /src/docker/build/dockerbuild.sh
branches: branches:
only: only:
- master - master
@ -47,19 +44,3 @@ notifications:
email: email:
on_success: change on_success: change
on_failure: always on_failure: always
# Use cache to speedup next build
services:
- docker
before_cache:
# Save tagged docker images
- >
mkdir -p $HOME/docker && docker images -a --filter='dangling=false' --format '{{.Repository}}:{{.Tag}} {{.ID}}'
| xargs -n 2 -t sh -c 'test -e $HOME/docker/$1.tar.gz || docker save $0 | gzip -2 > $HOME/docker/$1.tar.gz'
cache:
bundler: true
directories:
- $HOME/docker

1
src/local.c

@ -1110,6 +1110,7 @@ close_and_free_server(EV_P_ server_t *server)
if (server != NULL) { if (server != NULL) {
ev_io_stop(EV_A_ & server->send_ctx->io); ev_io_stop(EV_A_ & server->send_ctx->io);
ev_io_stop(EV_A_ & server->recv_ctx->io); ev_io_stop(EV_A_ & server->recv_ctx->io);
ev_timer_stop(EV_A_ & server->delayed_connect_watcher);
close(server->fd); close(server->fd);
free_server(server); free_server(server);
} }

Loading…
Cancel
Save