xfer: send signal "xfer_ended" after the received file has been renamed (closes #1438)
This commit is contained in:
parent
feb6258910
commit
9ac4639c8c
@ -29,6 +29,7 @@ Bug fixes::
|
||||
|
||||
* core: fix evaluation of condition with nested "if" (issue #1434)
|
||||
* irc: fix memory leak when the channel topic is changed
|
||||
* xfer: send signal "xfer_ended" after the received file has been renamed (issue #1438)
|
||||
|
||||
Build::
|
||||
|
||||
|
@ -296,8 +296,6 @@ xfer_close (struct t_xfer *xfer, enum t_xfer_status status)
|
||||
|
||||
if (XFER_HAS_ENDED(xfer->status))
|
||||
{
|
||||
xfer_send_signal (xfer, "xfer_ended");
|
||||
|
||||
if (xfer->hook_fd)
|
||||
{
|
||||
weechat_unhook (xfer->hook_fd);
|
||||
@ -379,6 +377,9 @@ xfer_close (struct t_xfer *xfer, enum t_xfer_status status)
|
||||
close (xfer->file);
|
||||
xfer->file = -1;
|
||||
}
|
||||
|
||||
if (XFER_HAS_ENDED(xfer->status))
|
||||
xfer_send_signal (xfer, "xfer_ended");
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user