Skip to content
Snippets Groups Projects
Commit 4a2a1c6d authored by Jan David Mol's avatar Jan David Mol
Browse files

bug 1362: initialise fncp only once on cnproc

parent 3a280448
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,13 @@ static Stream *createIONstream( unsigned channel ) ...@@ -76,7 +76,13 @@ static Stream *createIONstream( unsigned channel )
{ {
#if 1 && defined HAVE_FCNP && defined HAVE_BGP_CN && !defined HAVE_VALGRIND #if 1 && defined HAVE_FCNP && defined HAVE_BGP_CN && !defined HAVE_VALGRIND
/* preferred */ /* preferred */
FCNP_CN::init(); static bool initialized = false;
if (!initialized) {
initialized = true;
FCNP_CN::init();
}
return new FCNP_ClientStream(channel); return new FCNP_ClientStream(channel);
#elif 1 #elif 1
LocationInfo locationInfo; LocationInfo locationInfo;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment