Commit 37cacc57 authored by Martin Sustrik's avatar Martin Sustrik

ZMQII-1: Win32 - failure on shutdown

parent c806aabb
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include "../src/stdint.hpp"
#include "zmq.h" #include "zmq.h"
#include "org_zmq_Socket.h" #include "org_zmq_Socket.h"
......
...@@ -229,6 +229,10 @@ ...@@ -229,6 +229,10 @@
RelativePath="..\..\src\poll.cpp" RelativePath="..\..\src\poll.cpp"
> >
</File> </File>
<File
RelativePath="..\..\src\pub.cpp"
>
</File>
<File <File
RelativePath="..\..\src\select.cpp" RelativePath="..\..\src\select.cpp"
> >
......
...@@ -53,10 +53,10 @@ zmq::select_t::select_t () : ...@@ -53,10 +53,10 @@ zmq::select_t::select_t () :
zmq::select_t::~select_t () zmq::select_t::~select_t ()
{ {
worker.stop ();
// Make sure there are no fds registered on shutdown. // Make sure there are no fds registered on shutdown.
zmq_assert (load.get () == 0); zmq_assert (load.get () == 0);
worker.stop ();
} }
zmq::handle_t zmq::select_t::add_fd (fd_t fd_, i_poll_events *events_) zmq::handle_t zmq::select_t::add_fd (fd_t fd_, i_poll_events *events_)
......
...@@ -281,7 +281,7 @@ int zmq::socket_base_t::connect (const char *addr_) ...@@ -281,7 +281,7 @@ int zmq::socket_base_t::connect (const char *addr_)
#endif #endif
// Unknown address type. // Unknown address type.
errno = ENOTSUP; errno = EFAULT;
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment