Hotfix, iq replies coming to customer_ should try the manager first

Stephen Paul Weber created

Change summary

sgx_jmp.rb | 7 +++++++
1 file changed, 7 insertions(+)

Detailed changes

sgx_jmp.rb 🔗

@@ -142,6 +142,13 @@ message to: /\Aaccount@/ do |m|
 	end
 end
 
+before(
+	:iq,
+	type: [:error, :result],
+	to: /\Acustomer_/,
+	from: /(\A|@)#{CONFIG[:sgx]}(\/|\Z)/
+) { |iq| halt if IQ_MANAGER.fulfill(iq) }
+
 before nil, to: /\Acustomer_/, from: /(\A|@)#{CONFIG[:sgx]}(\/|\Z)/ do |s|
 	sentry_hub = new_sentry_hub(s, name: "stanza_customer")
 	Customer.for_customer_id(