mirror of git://git.sysmocom.de/ofono
gatserver: Don't free twice after user disconnect
It's possible to free gatserver in user disconnect function. So we should not free it again.
This commit is contained in:
parent
4ec07e9443
commit
2d219d37f9
|
@ -1019,9 +1019,6 @@ static void io_disconnect(gpointer user_data)
|
|||
|
||||
if (server->user_disconnect)
|
||||
server->user_disconnect(server->user_disconnect_data);
|
||||
|
||||
if (server->destroyed)
|
||||
g_free(server);
|
||||
}
|
||||
|
||||
static void server_wakeup_writer(GAtServer *server)
|
||||
|
|
Loading…
Reference in New Issue