From 0df732e0a69e5f6730f22c0950c0c6fbad7d75b9 Mon Sep 17 00:00:00 2001
From: Giovanni <giovanni.bussi@gmail.com>
Date: Fri, 7 Dec 2018 22:05:31 +0100
Subject: [PATCH] Test fix 	#417 (#418)

---
 src/vesselbase/ActionWithVessel.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vesselbase/ActionWithVessel.cpp b/src/vesselbase/ActionWithVessel.cpp
index 0a692fc77..09b53ab18 100644
--- a/src/vesselbase/ActionWithVessel.cpp
+++ b/src/vesselbase/ActionWithVessel.cpp
@@ -265,7 +265,7 @@ void ActionWithVessel::runAllTasks() {
 
   // Get number of threads for OpenMP
   unsigned nt=OpenMP::getNumThreads();
-  if( nt*stride*2>nactive_tasks || !threadSafe()) nt=1;
+  if( nt*stride*2>nactive_tasks || !threadSafe() || !actionIsBridged) nt=1;
 
   // Get size for buffer
   unsigned bsize=0, bufsize=getSizeOfBuffer( bsize );
-- 
GitLab