From 10c2c387b72720188a7ae4a31db21c7855d32036 Mon Sep 17 00:00:00 2001 From: Tomasz Pietrek Date: Tue, 28 Feb 2023 15:36:37 +0100 Subject: [PATCH] Fix panic if serviceExport is nil Signed-off-by: Tomasz Pietrek --- server/accounts.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/accounts.go b/server/accounts.go index b68059d0..c0a792e7 100644 --- a/server/accounts.go +++ b/server/accounts.go @@ -2360,7 +2360,9 @@ func (a *Account) addRespServiceImport(dest *Account, to string, osi *serviceImp // Always grab time and make sure response threshold timer is running. si.ts = time.Now().UnixNano() - osi.se.setResponseThresholdTimer() + if osi.se != nil { + osi.se.setResponseThresholdTimer() + } if rt == Singleton && tracking { si.latency = osi.latency