[Jira Server] Threads in Listener

Hello

After updating an issue xyz I have a listener and the logic that exits in it is the following:

  • Do some jql search and update other issues accodingly

I did that successfully, however it is taking too much time to update issue xyz( waiting for the listener)
Is there a way i can do the update without waiting fot the listener to finish

Thanks,
Ibrahim