ObjFW  Check-in [892e623e3a]

Overview
Comment:OFTCPSocket: Retain exception for async connect
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.90
Files: files | file ages | folders
SHA3-256: 892e623e3afac348947ce61f89f69db19b54ee6ece4e0a7c8cb58560c1f91f2b
User & Date: js on 2017-09-24 01:21:10
Other Links: branch diff | manifest | tags
Context
2017-09-26
00:06
Fix a few missing nullable check-in: cfb4a7ab76 user: js tags: 0.90
2017-09-24
01:21
OFTCPSocket: Retain exception for async connect check-in: 892e623e3a user: js tags: 0.90
2017-08-20
19:30
ChangeLog: Add 0.90.1 check-in: 5c0bf046cc user: js tags: 0.90.1-release, 0.90
Changes

Modified src/OFTCPSocket.m from [56b097e84a] to [9870a76e72].

181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
{
	void *pool = objc_autoreleasePoolPush();

	@try {
		[_socket connectToHost: _host
				  port: _port];
	} @catch (OFException *e) {
		_exception = e;
	}

	[self performSelector: @selector(didConnect)
		     onThread: _sourceThread
		waitUntilDone: false];

	objc_autoreleasePoolPop(pool);







|







181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
{
	void *pool = objc_autoreleasePoolPush();

	@try {
		[_socket connectToHost: _host
				  port: _port];
	} @catch (OFException *e) {
		_exception = [e retain];
	}

	[self performSelector: @selector(didConnect)
		     onThread: _sourceThread
		waitUntilDone: false];

	objc_autoreleasePoolPop(pool);