export smartSubtransportCloseCallback
(errorMessage **C.char, t *C.git_smart_subtransport)
| 401 | |
| 402 | //export smartSubtransportCloseCallback |
| 403 | func smartSubtransportCloseCallback(errorMessage **C.char, t *C.git_smart_subtransport) C.int { |
| 404 | subtransport := getSmartSubtransportInterface(t) |
| 405 | |
| 406 | subtransport.currentManagedStream = nil |
| 407 | |
| 408 | if subtransport.underlying != nil { |
| 409 | err := subtransport.underlying.Close() |
| 410 | if err != nil { |
| 411 | return setCallbackError(errorMessage, err) |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | return C.int(ErrorCodeOK) |
| 416 | } |
| 417 | |
| 418 | //export smartSubtransportFreeCallback |
| 419 | func smartSubtransportFreeCallback(t *C.git_smart_subtransport) { |
no test coverage detected
searching dependent graphs…