Permalink
Browse files

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

…oke.
  • Loading branch information...
xicilion committed Aug 18, 2018
1 parent 56fba6f commit f97a19fc1749c211dc2ba21660da910fab185da3
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 f97a19f

Please sign in to comment.