summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/channel.c b/src/channel.c
index 3792b354b..0dab3be5f 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -3593,10 +3593,6 @@ channel_read_json_block(
ch_log(channel, "Blocking read JSON for id %d", id);
- // Not considered a safe state here, since we are processing a JSON message
- // and parsing other messages while waiting.
- enter_unsafe_state();
-
if (id >= 0)
channel_add_block_id(chanpart, id);
@@ -3666,9 +3662,6 @@ channel_read_json_block(
if (id >= 0)
channel_remove_block_id(chanpart, id);
- // This may trigger a SafeState autocommand.
- leave_unsafe_state();
-
return retval;
}