Skip to content
This repository was archived by the owner on Apr 23, 2023. It is now read-only.

Commit 6df883d

Browse files
committed
Catching exceptions by reference
1 parent c511387 commit 6df883d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp_utils/SockServ.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ SockServ::~SockServ() {
7070
pSockServ->m_clientSet.insert(tempSock);
7171
xQueueSendToBack(pSockServ->m_acceptQueue, &tempSock, portMAX_DELAY);
7272
pSockServ->m_clientSemaphore.give();
73-
} catch (std::exception e) {
73+
} catch (std::exception& e) {
7474
ESP_LOGD(LOG_TAG, "acceptTask ending");
7575
pSockServ->m_clientSemaphore.give(); // Wake up any waiting clients.
7676
FreeRTOS::deleteTask();

0 commit comments

Comments
 (0)