summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-hook.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index 72a0e31a5..2a0384607 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -1290,6 +1290,9 @@ hook_process_child_read (struct t_hook *hook_process, int fd,
char buffer[4096];
int num_read;
+ if (hook_process->deleted)
+ return;
+
num_read = read (fd, buffer, sizeof (buffer) - 1);
if (num_read > 0)
{
@@ -1355,6 +1358,9 @@ hook_process_timer_cb (void *arg_hook_process, int remaining_calls)
hook_process = (struct t_hook *)arg_hook_process;
+ if (hook_process->deleted)
+ return WEECHAT_RC_OK;
+
if (remaining_calls == 0)
{
gui_chat_printf (NULL,