aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2012-10-03 17:39:53 +0200
committerIngela Anderton Andin <[email protected]>2012-10-03 19:25:29 +0200
commit9e7e31c9011e1a63957b48b794b0c72669c081ae (patch)
treedeac2be399ce9d8091fea85203f63be6cc7e4604 /lib/ssh/src/ssh_connection.erl
parent0fa25d095f7760efeb17585f961f9092e6ec1fc9 (diff)
downloadotp-9e7e31c9011e1a63957b48b794b0c72669c081ae.tar.gz
otp-9e7e31c9011e1a63957b48b794b0c72669c081ae.tar.bz2
otp-9e7e31c9011e1a63957b48b794b0c72669c081ae.zip
ssh: Make test case platform independant
The test case interrupted_send did not work on all platforms. Also ct-ify the test suite
Diffstat (limited to 'lib/ssh/src/ssh_connection.erl')
-rw-r--r--lib/ssh/src/ssh_connection.erl14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/ssh/src/ssh_connection.erl b/lib/ssh/src/ssh_connection.erl
index 5372d48986..240d7f70d1 100644
--- a/lib/ssh/src/ssh_connection.erl
+++ b/lib/ssh/src/ssh_connection.erl
@@ -318,22 +318,22 @@ channel_data(ChannelId, DataType, Data,
From) ->
case ssh_channel:cache_lookup(Cache, ChannelId) of
- #channel{remote_id = Id, sent_close = false} = Channel0 ->
+ #channel{remote_id = Id, sent_close = false} = Channel0 ->
{SendList, Channel} = update_send_window(Channel0#channel{flow_control = From}, DataType,
Data, Connection),
Replies =
lists:map(fun({SendDataType, SendData}) ->
- {connection_reply, ConnectionPid,
- channel_data_msg(Id,
- SendDataType,
- SendData)}
+ {connection_reply, ConnectionPid,
+ channel_data_msg(Id,
+ SendDataType,
+ SendData)}
end, SendList),
FlowCtrlMsgs = flow_control(Replies,
Channel,
Cache),
{{replies, Replies ++ FlowCtrlMsgs}, Connection};
- _ ->
- gen_server:reply(From, {error, closed}),
+ _ ->
+ gen_server:reply(From, {error, closed}),
{noreply, Connection}
end.