Skip to content

Commit c39efcb

Browse files
committed
fix a initial value bug
1 parent 24e8266 commit c39efcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sio_socket.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ void set_##__FIELD__(__TYPE__ const& l) \
217217
m_error_listener = nullptr;
218218
}
219219

220-
socket::impl::impl(client_impl *client,std::string const& nsp):m_client(client),m_nsp(nsp)
220+
socket::impl::impl(client_impl *client,std::string const& nsp):
221+
m_client(client),
222+
m_nsp(nsp),
223+
m_connected(false)
221224
{
222225
NULL_GUARD(client);
223226
if(m_client->opened())

0 commit comments

Comments
 (0)