Skip to content
This repository has been archived by the owner on May 8, 2019. It is now read-only.

Commit

Permalink
Fix monitor to add monitor message header
Browse files Browse the repository at this point in the history
  • Loading branch information
shun159 committed Apr 23, 2016
1 parent 2f386a5 commit a553e37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/eovsdb_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ handle_info({'DOWN', MonRef, process, _MonPid, _Reason},
eovsdb_protocol:monitor_cancel(ConnPid),
erlang:demonitor(MonRef),
{noreply, State};
handle_info({monitor_update, Update},
handle_info({ovsdb_monitor, _} = Update,
State = #?STATE{monitor_pid = MPid}) ->
erlang:send(MPid, Update),
{noreply, State};
Expand Down
2 changes: 1 addition & 1 deletion src/eovsdb_protocol.erl
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ handle_message(#{ <<"method">> := <<"update">> } = Data,
State = #?STATE{ monitor_pid = MPid }) ->
#{ <<"params">> := Params } = Data,
[_, Update] = Params,
erlang:send(MPid, {monitor_update, Update}),
erlang:send(MPid, {ovsdb_monitor, Update}),
State;
handle_message(Data, State = #?STATE{pending_message = PM0}) ->
#{ <<"id">> := Id,
Expand Down

0 comments on commit a553e37

Please sign in to comment.