mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
bugfix: clear connected flag when update address
This commit is contained in:
@@ -186,6 +186,7 @@ _update_address(struct master *m, int harbor_id, const char * buffer, size_t sz)
|
||||
if (m->remote_fd[harbor_id] >= 0) {
|
||||
skynet_socket_close(context, m->remote_fd[harbor_id]);
|
||||
m->remote_fd[harbor_id] = -1;
|
||||
m->connected[harbor_id] = false;
|
||||
}
|
||||
free(m->remote_addr[harbor_id]);
|
||||
char * addr = malloc(sz+1);
|
||||
|
||||
Reference in New Issue
Block a user