assign value to __mg_tick_counter when startup

This commit is contained in:
Vincent Wei
2020-03-02 19:28:52 +08:00
parent 404349dd45
commit 38c4a3e632
+3 -1
View File
@@ -121,7 +121,7 @@ BOOL client_ClientStartup (void)
struct sigaction siga;
/* connect to server */
if ( (conn_fd = cli_conn (CS_PATH, 'a')) < 0)
if ((conn_fd = cli_conn (CS_PATH, 'a')) < 0)
return FALSE;
FD_SET (conn_fd, &__mg_dsk_msg_queue->rfdset);
@@ -575,6 +575,8 @@ GHANDLE GUIAPI JoinLayer (const char* layer_name, const char* client_name,
__mg_zorder_info = zi;
}
__mg_tick_counter = SHAREDRES_TIMER_COUNTER;
__mg_start_client_desktop ();
ret: