| 1084 | } |
| 1085 | |
| 1086 | int |
| 1087 | PluginVCCore::state_send_accept_failed(int /* event ATS_UNUSED */, void * /* data ATS_UNUSED */) |
| 1088 | { |
| 1089 | if (connect_to->mutex == nullptr) { |
| 1090 | connect_to->handleEvent(NET_EVENT_ACCEPT_FAILED, nullptr); |
| 1091 | destroy(); |
| 1092 | } else { |
| 1093 | MUTEX_TRY_LOCK(lock, connect_to->mutex, this_ethread()); |
| 1094 | |
| 1095 | if (lock.is_locked()) { |
| 1096 | connect_to->handleEvent(NET_EVENT_ACCEPT_FAILED, nullptr); |
| 1097 | destroy(); |
| 1098 | } else { |
| 1099 | SET_HANDLER(&PluginVCCore::state_send_accept_failed); |
| 1100 | eventProcessor.schedule_in(this, PVC_LOCK_RETRY_TIME); |
| 1101 | } |
| 1102 | } |
| 1103 | |
| 1104 | return 0; |
| 1105 | } |
| 1106 | |
| 1107 | int |
| 1108 | PluginVCCore::state_send_accept(int /* event ATS_UNUSED */, void * /* data ATS_UNUSED */) |
nothing calls this directly
no test coverage detected