Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
da922199
Commit
da922199
authored
7 years ago
by
Guillaume Roguez
Browse files
Options
Downloads
Patches
Plain Diff
data tx: remove NGO at end of successful tx
Change-Id: I3f58b8394c3402ca58c36f3aaf66dd9e673ee11a
parent
221f3006
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ftp_server.cpp
+7
-5
7 additions, 5 deletions
src/ftp_server.cpp
with
7 additions
and
5 deletions
src/ftp_server.cpp
+
7
−
5
View file @
da922199
...
...
@@ -92,12 +92,14 @@ FtpServer::read(std::vector<uint8_t>& buffer) const
if
(
!
out_
)
{
if
(
closed_
)
{
closed_
=
false
;
buffer
.
resize
(
4
);
buffer
[
0
]
=
'N'
;
buffer
[
1
]
=
'G'
;
buffer
[
2
]
=
'O'
;
buffer
[
3
]
=
'\n'
;
RING_DBG
()
<<
"[FTP] sending NGO (cancel) order"
;
}
else
{
buffer
.
resize
(
0
);
if
(
rx_
<
fileSize_
)
{
buffer
.
resize
(
4
);
buffer
[
0
]
=
'N'
;
buffer
[
1
]
=
'G'
;
buffer
[
2
]
=
'O'
;
buffer
[
3
]
=
'\n'
;
RING_DBG
()
<<
"[FTP] sending NGO (cancel) order"
;
return
true
;
}
}
buffer
.
resize
(
0
);
}
else
if
(
go_
)
{
go_
=
false
;
buffer
.
resize
(
3
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment