mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-11 21:13:17 +00:00
1. Fixed compiler warning
2. Fixed GC issue with monitor-info.js 3. Added screenId to windows getInfo()
This commit is contained in:
@@ -949,7 +949,6 @@ duk_ret_t ILibDuktape_HttpStream_http_OnSocketReady(duk_context *ctx)
|
||||
duk_push_heapptr(ctx, httpStream); // [socket][pipe][this][http]
|
||||
if (duk_pcall_method(ctx, 1) != 0) { return(ILibDuktape_Error(ctx, "http.onConnect(): Error calling pipe ")); }
|
||||
duk_pop(ctx); // [socket]
|
||||
char *ttmp = (char*)Duktape_GetBufferProperty(ctx, -1, ILibDuktape_readableStream_RSPTRS);
|
||||
|
||||
// HttpStream => Socket
|
||||
duk_push_heapptr(ctx, httpStream); // [socket][http]
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -209,7 +209,7 @@ void ILibDuktape_net_socket_OnConnect(ILibAsyncSocket_SocketModule socketModule,
|
||||
duk_push_heapptr(ptrs->ctx, ptrs->object); // [socket]
|
||||
if (alpnLen != 0)
|
||||
{
|
||||
duk_push_lstring(ptrs->ctx, alpn, alpnLen);
|
||||
duk_push_lstring(ptrs->ctx, (const char*)alpn, alpnLen);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -889,7 +889,7 @@ void ILibDuktape_net_server_OnConnect(ILibAsyncServerSocket_ServerModule AsyncSe
|
||||
SSL_SESSION_get0_alpn_selected(SSL_get_session(ILibAsyncServerSocket_GetSSL(ConnectionToken)), &alpn, &alpnLen);
|
||||
if (alpnLen != 0)
|
||||
{
|
||||
duk_push_lstring(ptr->ctx, alpn, alpnLen);
|
||||
duk_push_lstring(ptr->ctx, (const char*)alpn, alpnLen);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1384,8 +1384,6 @@ duk_ret_t ILibDuktape_EventEmitter_getProperty(duk_context *ctx)
|
||||
}
|
||||
duk_ret_t ILibDuktape_EventEmitter_setProperty(duk_context *ctx)
|
||||
{
|
||||
char *s = (char*)duk_get_string(ctx, 0);
|
||||
char *s2 = (char*)duk_get_string(ctx, 1);
|
||||
duk_push_this(ctx); // [obj]
|
||||
char *tmp = (char*)duk_push_sprintf(ctx, "%s", duk_get_string(ctx, 0));// [obj][string]
|
||||
duk_dup(ctx, 1); // [obj][string][val]
|
||||
|
||||
Reference in New Issue
Block a user