Skip to content

Commit

Permalink
Switch network framer name to uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Nov 20, 2023
1 parent 970a411 commit b79bf1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Monal/Classes/MLStream.m
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ +(void) connectWithSNIDomain:(NSString*) SNIDomain connectHost:(NSString*) host

//create simple framer and append it to our stack
__block int startupCounter = 0; //workaround for some weird apple stuff, see below
nw_protocol_definition_t starttls_framer_definition = nw_framer_create_definition("starttls_framer", NW_FRAMER_CREATE_FLAGS_DEFAULT, ^(nw_framer_t framer) {
nw_protocol_definition_t starttls_framer_definition = nw_framer_create_definition([[NSUUID UUID] UUIDString], NW_FRAMER_CREATE_FLAGS_DEFAULT, ^(nw_framer_t framer) {
//we don't need any locking for our counter because all framers will be started in the same internal network queue
int framerId = startupCounter;
startupCounter++;
Expand Down

0 comments on commit b79bf1d

Please sign in to comment.