diff options
author | David M. Lee <dlee@digium.com> | 2013-07-26 17:42:08 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-07-26 17:42:08 +0000 |
commit | b6f9b398308865fcb2c42995d4277e10ab9518e7 (patch) | |
tree | 55afbe94f436f38585831e1a7b2d8aa1935c98de /res/stasis | |
parent | 9a46c1d0199e5e3627665b68f88d4ec21f09d2a9 (diff) |
Fix /stasis/res/app_replaced unit test.
A typo in recent changes caused the JSON ApplicationReplaced message to
fail to build, so the message wasn't being sent out the WebSocket.
Related, the replaced application would also unregister itself when it
disconnected, which would actually unregister the new application. This
was also fixed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395527 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/stasis')
-rw-r--r-- | res/stasis/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/stasis/app.c b/res/stasis/app.c index dfb6df338..6f80ed64a 100644 --- a/res/stasis/app.c +++ b/res/stasis/app.c @@ -221,7 +221,7 @@ void app_update(struct app *app, stasis_app_cb handler, void *data) msg = ast_json_pack("{s: s, s: s}", "type", "ApplicationReplaced", - "application", app_name); + "application", app->name); if (msg) { app_send(app, msg); } |