From d449446b325dfe49f30b281826ca139470b62d65 Mon Sep 17 00:00:00 2001 From: kai Date: Mon, 27 Feb 2023 18:00:51 +0000 Subject: [PATCH] Fix dynamic plugins exhibiting very high CPU usage due to message stream function. Closes #537 --- plugin/plugin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/plugin.go b/plugin/plugin.go index f14e6c5c..428349e4 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -229,8 +229,8 @@ func (p *Plugin) EstablishMessageStream(stream proto.WrapperPlugin_EstablishMess log.Printf("[TRACE] plugin.EstablishMessageStream set on plugin: plugin.messageStream %p", p.messageStream) // hold stream open - for { - } + select {} + return nil }