summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/red_client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/red_client.cpp b/client/red_client.cpp
index 969644c1..cf4562b3 100644
--- a/client/red_client.cpp
+++ b/client/red_client.cpp
@@ -328,7 +328,8 @@ void RedClient::on_connecting()
void RedClient::on_connect()
{
- push_event(new ConnectedEvent());
+ AutoRef<ConnectedEvent> event(new ConnectedEvent());
+ push_event(*event);
_migrate.add_channel(new MigChannel(RED_CHANNEL_MAIN, 0, get_common_caps(),
get_caps()));
}