mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 23:51:04 +08:00
ZMQII-1: Win32 - failure on shutdown
This commit is contained in:
parent
c806aabb2d
commit
37cacc5700
@ -22,6 +22,8 @@
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "../src/stdint.hpp"
|
||||
|
||||
#include "zmq.h"
|
||||
#include "org_zmq_Socket.h"
|
||||
|
||||
|
@ -229,6 +229,10 @@
|
||||
RelativePath="..\..\src\poll.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\pub.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\select.cpp"
|
||||
>
|
||||
|
@ -53,10 +53,10 @@ zmq::select_t::select_t () :
|
||||
|
||||
zmq::select_t::~select_t ()
|
||||
{
|
||||
worker.stop ();
|
||||
|
||||
// Make sure there are no fds registered on shutdown.
|
||||
zmq_assert (load.get () == 0);
|
||||
|
||||
worker.stop ();
|
||||
}
|
||||
|
||||
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_)
|
||||
#endif
|
||||
|
||||
// Unknown address type.
|
||||
errno = ENOTSUP;
|
||||
errno = EFAULT;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user