Skip to content

Commit

Permalink
Fix small issue introduced in latest commit spotted by codacy.
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeDP committed Mar 18, 2018
1 parent 3a16909 commit d30993b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ module_ret_code module_pause(const self_t *self) {

int ret = 0;
if (mod->fd != MODULE_DONT_POLL) {
epoll_ctl(c->epollfd, EPOLL_CTL_DEL, mod->fd, NULL);
ret = epoll_ctl(c->epollfd, EPOLL_CTL_DEL, mod->fd, NULL);
}
if (!ret) {
mod->state = PAUSED;
Expand Down

0 comments on commit d30993b

Please sign in to comment.