Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
97befba7
Commit
97befba7
authored
Mar 10, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
72d67b9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
wcfs/client/wcfs_watchlink.cpp
wcfs/client/wcfs_watchlink.cpp
+4
-3
No files found.
wcfs/client/wcfs_watchlink.cpp
View file @
97befba7
...
...
@@ -219,11 +219,12 @@ error _WatchLink::_serveRX(context::Context ctx) {
// XXX +ctx?
error
_WatchLink
::
_send
(
StreamID
stream
,
const
string
&
msg
)
{
_WatchLink
&
wlink
=
*
this
;
// XXX +errctx ?
xerr
::
Contextf
E
(
"%s: send .%d"
,
v
(
wlink
),
stream
);
if
(
msg
.
find
(
'\n'
)
!=
string
::
npos
)
panic
(
"msg has
\\
n"
);
string
pkt
=
fmt
::
sprintf
(
"%lu %s
\n
"
,
stream
,
v
(
msg
));
return
wlink
.
_write
(
pkt
);
return
E
(
wlink
.
_write
(
pkt
)
);
}
error
_twlinkwrite
(
WatchLink
wlink
,
const
string
&
pkt
)
{
...
...
@@ -231,7 +232,7 @@ error _twlinkwrite(WatchLink wlink, const string &pkt) {
}
error
_WatchLink
::
_write
(
const
string
&
pkt
)
{
_WatchLink
&
wlink
=
*
this
;
//
XXX +errctx ?
//
no errctx
wlink
.
_txmu
.
lock
();
defer
([
&
]()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment