win32: moved osiSockAttach() call before loadConfiguration

should fix #45
This commit is contained in:
Matej Sekoranja
2016-04-26 20:48:27 +02:00
parent 13bb108120
commit 4e264f2295

View File

@@ -174,6 +174,8 @@ void ServerContextImpl::loadConfiguration()
// introspect network interfaces
//
osiSockAttach();
SOCKET sock = epicsSocketCreate(AF_INET, SOCK_STREAM, 0);
if (!sock) {
THROW_BASE_EXCEPTION("Failed to create a socket needed to introspect network interfaces.");
@@ -263,7 +265,8 @@ void ServerContextImpl::initialize(ChannelProviderRegistry::shared_pointer const
void ServerContextImpl::internalInitialize()
{
osiSockAttach();
// already called in loadConfiguration
//osiSockAttach();
_timer.reset(new Timer("pvAccess-server timer", lowerPriority));
_transportRegistry.reset(new TransportRegistry());