Lock SP instance for incoming calls.
authorScott Cantor <cantor.2@osu.edu>
Sun, 4 Feb 2007 00:23:37 +0000 (00:23 +0000)
committerScott Cantor <cantor.2@osu.edu>
Sun, 4 Feb 2007 00:23:37 +0000 (00:23 +0000)
shibsp/remoting/impl/ListenerService.cpp

index f72ed8d..18fcfeb 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "internal.h"
 #include "exceptions.h"
+#include "ServiceProvider.h"
 #include "remoting/ListenerService.h"
 
 #include <log4cpp/Category.hh>
@@ -96,5 +97,6 @@ void ListenerService::receive(DDF &in, ostream& out)
     if (!dest)
         throw ListenerException("No destination registered for incoming message addressed to ($1).",params(1,in.name()));
     
+    Locker locker(SPConfig::getConfig().getServiceProvider());\r
     dest->receive(in, out);
 }