Skip to content

Commit

Permalink
stopped remove_subscriber() raising a JLOG_ERR_SUCCESS exception
Browse files Browse the repository at this point in the history
  • Loading branch information
zxvdr committed Oct 3, 2011
1 parent 5d43d5a commit 93f4d4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions jlog.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jlog.pyx
Expand Up @@ -129,7 +129,7 @@ cdef class Writer:
cpdef remove_subscriber(self, subscriber):
cdef cjlog.jlog_ctx *ctx
ctx = cjlog.jlog_new(self.path)
if cjlog.jlog_ctx_remove_subscriber(ctx, PyString_AsString(subscriber)) != 0:
if cjlog.jlog_ctx_remove_subscriber(ctx, PyString_AsString(subscriber)) != 1:
raise JLogError(cjlog.jlog_ctx_err(ctx), cjlog.jlog_ctx_err_string(ctx))
if cjlog.jlog_ctx_close(ctx) != 0:
raise JLogError(cjlog.jlog_ctx_err(ctx), cjlog.jlog_ctx_err_string(ctx))
Expand Down

0 comments on commit 93f4d4d

Please sign in to comment.