Skip to content
Permalink
Browse files

TcpServer, bugfix: return the holder isolate of TcpServer in AsyncInv…

…oke.
  • Loading branch information...
xicilion committed Aug 18, 2018
1 parent bc193ca commit 26bf45e2d3c2b064e674e33bb687c21e47457482
Showing with 5 additions and 0 deletions.
  1. +5 −0 fibjs/src/net/TcpServer.cpp
@@ -120,6 +120,11 @@ result_t TcpServer::run(AsyncEvent* ac)
return 0;
}

virtual Isolate* isolate()
{
return m_pThis->holder();
}

private:
obj_ptr<TcpServer> m_pThis;
obj_ptr<Socket_base> m_sock;

0 comments on commit 26bf45e

Please sign in to comment.
You can’t perform that action at this time.