ObjFW  Check-in [1a7733bc4a]

Overview
Comment:OFSCTPSocket: Reset delegate before throwing
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | sctp
Files: files | file ages | folders
SHA3-256: 1a7733bc4a3f23b8500294a1152d09f95146f6fa029c6aaa8157a8d618f64fda
User & Date: js on 2022-11-07 00:14:45
Other Links: branch diff | manifest | tags
Context
2022-11-07
00:30
Update copyright Leaf check-in: fd43329443 user: js tags: sctp
00:14
OFSCTPSocket: Reset delegate before throwing check-in: 1a7733bc4a user: js tags: sctp
00:12
OFSCTPSocket: Avoid property access check-in: d8cb4ac959 user: js tags: sctp
Changes

Modified src/OFSCTPSocket.m from [46b7bd7897] to [1735f83790].

138
139
140
141
142
143
144


145
146
147
148
149
150
151
152
153
154
155
156
157
138
139
140
141
142
143
144
145
146
147
148
149
150


151
152
153
154
155
156
157







+
+




-
-







		     runLoopMode: connectRunLoopMode];

	while (!connectDelegate->_done)
		[runLoop runMode: connectRunLoopMode beforeDate: nil];

	/* Cleanup */
	[runLoop runMode: connectRunLoopMode beforeDate: [OFDate date]];

	_delegate = delegate;

	if (connectDelegate->_exception != nil)
		@throw connectDelegate->_exception;

	_delegate = delegate;

	objc_autoreleasePoolPop(pool);
}

- (void)asyncConnectToHost: (OFString *)host port: (uint16_t)port
{
	[self asyncConnectToHost: host
			    port: port