Fix invitations.
These were broken due to a change in behaviour of sptps_receive_data()
introduced in commit d237efd325
.
This commit is contained in:
parent
7e6b2dd1ea
commit
44e9f1e1d8
1 changed files with 8 additions and 2 deletions
|
@ -988,8 +988,14 @@ int cmd_join(int argc, char *argv[]) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
if(!sptps_receive_data(&sptps, line, len))
|
||||
char *p = line;
|
||||
while(len) {
|
||||
int done = sptps_receive_data(&sptps, p, len);
|
||||
if(!done)
|
||||
return 1;
|
||||
len -= done;
|
||||
p += done;
|
||||
}
|
||||
}
|
||||
|
||||
sptps_stop(&sptps);
|
||||
|
|
Loading…
Reference in a new issue